Chromecast treats HOME_APP as no app running now
This commit is contained in:
parent
1ba7d583cc
commit
233f2e65ef
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ def setup(bus, statemachine, host):
|
||||||
status = pychromecast.get_app_status(host)
|
status = pychromecast.get_app_status(host)
|
||||||
|
|
||||||
if status:
|
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:
|
{ATTR_FRIENDLY_NAME:
|
||||||
pychromecast.get_friendly_name(
|
pychromecast.get_friendly_name(
|
||||||
status.name),
|
status.name),
|
||||||
|
|
Loading…
Add table
Reference in a new issue