Chromecast treats HOME_APP as no app running now

pull/2/head
Paulus Schoutsen 2014-01-22 19:46:28 -08:00
parent 1ba7d583cc
commit 233f2e65ef
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ def setup(bus, statemachine, host):
status = pychromecast.get_app_status(host)
if status:
statemachine.set_state(entity, status.name,
state = STATE_NO_APP if status.name == pychromecast.APP_ID_HOME \
else status.name
statemachine.set_state(entity, state,
{ATTR_FRIENDLY_NAME:
pychromecast.get_friendly_name(
status.name),