From dbcc3a76ea58e345e896c9707d5a72db1a9cd9bb Mon Sep 17 00:00:00 2001 From: Jon Maddox Date: Wed, 7 Oct 2015 01:29:55 -0400 Subject: [PATCH] style --- homeassistant/helpers/state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/state.py b/homeassistant/helpers/state.py index ac80da98555..2f688647a5a 100644 --- a/homeassistant/helpers/state.py +++ b/homeassistant/helpers/state.py @@ -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