style
This commit is contained in:
parent
faa3e98921
commit
dbcc3a76ea
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ def reproduce_state(hass, states, blocking=False):
|
|||
elif state.domain == 'media_player' and state.state == STATE_PLAYING:
|
||||
service = SERVICE_MEDIA_PLAY
|
||||
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
|
||||
elif state.state == STATE_ON:
|
||||
service = SERVICE_TURN_ON
|
||||
|
|
Loading…
Add table
Reference in a new issue