mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
moar derp
This commit is contained in:
parent
082920abe0
commit
90f35b35cd
@ -61,7 +61,7 @@ def reproduce_state(hass, states, blocking=False):
|
|||||||
service = SERVICE_MEDIA_PAUSE
|
service = SERVICE_MEDIA_PAUSE
|
||||||
elif state.domain == 'media_player' and state == STATE_PLAYING:
|
elif state.domain == 'media_player' and state == STATE_PLAYING:
|
||||||
service = SERVICE_MEDIA_PLAY
|
service = SERVICE_MEDIA_PLAY
|
||||||
else
|
else:
|
||||||
if state.state == STATE_ON:
|
if state.state == STATE_ON:
|
||||||
service = SERVICE_TURN_ON
|
service = SERVICE_TURN_ON
|
||||||
elif state.state == STATE_OFF:
|
elif state.state == STATE_OFF:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user