mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +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
|
||||
elif state.domain == 'media_player' and state == STATE_PLAYING:
|
||||
service = SERVICE_MEDIA_PLAY
|
||||
else
|
||||
else:
|
||||
if state.state == STATE_ON:
|
||||
service = SERVICE_TURN_ON
|
||||
elif state.state == STATE_OFF:
|
||||
|
Loading…
x
Reference in New Issue
Block a user