Chromecast treats HOME_APP as no app running now
parent
1ba7d583cc
commit
233f2e65ef
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue