mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Fix reproduce_state
This commit is contained in:
parent
5a562f3db8
commit
3625646c34
@ -57,9 +57,9 @@ def reproduce_state(hass, states, blocking=False):
|
|||||||
state.entity_id)
|
state.entity_id)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if state.domain == 'media_player' and state == STATE_PAUSED:
|
if state.domain == 'media_player' and state.state == STATE_PAUSED:
|
||||||
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 == STATE_PLAYING:
|
||||||
service = SERVICE_MEDIA_PLAY
|
service = SERVICE_MEDIA_PLAY
|
||||||
elif state.state == STATE_ON:
|
elif state.state == STATE_ON:
|
||||||
service = SERVICE_TURN_ON
|
service = SERVICE_TURN_ON
|
||||||
|
Loading…
x
Reference in New Issue
Block a user