mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
derp
This commit is contained in:
parent
c4f8017a3f
commit
6c4b2fd638
@ -63,8 +63,8 @@ def reproduce_state(hass, states, blocking=False):
|
|||||||
service = SERVICE_MEDIA_PAUSE
|
service = SERVICE_MEDIA_PAUSE
|
||||||
elif state.domain == 'media_player' and state.state == STATE_PLAYING:
|
elif state.domain == 'media_player' and state.state == STATE_PLAYING:
|
||||||
service = SERVICE_MEDIA_PLAY
|
service = SERVICE_MEDIA_PLAY
|
||||||
elif state.domain == 'media_player' and state.attributes and
|
elif state.domain == 'media_player' and state.attributes and \
|
||||||
'media_type' in state.attributes and 'media_id' in state.attributes
|
'media_type' in state.attributes and 'media_id' in state.attributes:
|
||||||
service = SERVICE_PLAY_MEDIA
|
service = SERVICE_PLAY_MEDIA
|
||||||
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