Prevent the projector to toogle on/off#22985
Conversation
|
According to this #22878 I think it is better to manipulate SUPPORT_EPSON in state attributes. |
I think submitted approach correct. The referenced PR is to guard against calls that aren't implemented in the device -- not that the current state doesn't allow it. Media player is the exception to the rule that |
andrewsayre
left a comment
There was a problem hiding this comment.
So if I'm understanding this PR correctly, the constants TURN_ON and TURN_OFF are the same underlying control command hence why we need check the current state of the device before issuing the command to prevent a toggle. If that's correct, this is good to go once build passes.
|
@andrewsayre no, If you send TURN_ON if it is turned ot projector would probably show info that you need click TURN_ON second time. |
Correct. |
|
I think you're both saying the same thing, just at different levels of abstraction. Are we aligned on this fix? |
|
It doesn't break anything, so I think it's good to merge. |
Prevents the projector to toogle on/off.
Description:
The Epson Projector EH-TW7300 turns on and off with the same command. This minor change fix it.
Checklist:
tox.