-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lgwebos] Ignore power off command when the TV is already off #7300
Conversation
Signed-off-by: Laurent Garnier <lg.hc@free/fr>
Travis tests were successfulHey @lolodomo, |
} else if (!powerOn && OnOffType.OFF == command) { | ||
logger.debug("Received OFF - Ignored as the TV is already off."); | ||
} else if (powerOn && OnOffType.OFF == command) { | ||
handler.getSocket().powerOff(getDefaultResponseListener()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else if (!powerOn && OnOffType.OFF == command) { | |
logger.debug("Received OFF - Ignored as the TV is already off."); | |
} else if (powerOn && OnOffType.OFF == command) { | |
handler.getSocket().powerOff(getDefaultResponseListener()); | |
} else if (OnOffType.OFF == command) { | |
if (powerOn){ | |
handler.getSocket().powerOff(getDefaultResponseListener()); | |
}else{ | |
logger.debug("Received OFF - Ignored as the TV is already off."); | |
} |
Signed-off-by: Laurent Garnier <[email protected]>
Travis tests were successfulHey @lolodomo, |
I added the tag "community approved" as I got a positive feedback on the forum with this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Hans-Reiner Hoffmann <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Eugen Freiter <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: CSchlipp <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
…b#7300) * [lgwebos] Ignore power off command when the TV is already off Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: Laurent Garnier <lg.hc@free/fr>