1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 13:38:04 +00:00
This commit is contained in:
Jon Maddox
2015-09-24 00:15:36 -04:00
parent 1674c8309a
commit 4a8bbc52e0

View File

@@ -60,7 +60,7 @@ def reproduce_state(hass, states, blocking=False):
service = 'media_pause'
elif state.domain == 'media_player' and state == STATE_PLAYING:
service = 'media_play'
elif
else
if state.state == STATE_ON:
service = SERVICE_TURN_ON
elif state.state == STATE_OFF: