ChromeCast observer will add friendly name as attribute
This commit is contained in:
parent
7637b6ca0e
commit
9531c6643e
1 changed files with 4 additions and 1 deletions
|
@ -186,7 +186,10 @@ def setup_chromecast(bus, statemachine, host):
|
|||
|
||||
if status:
|
||||
statemachine.set_state(category, status.name,
|
||||
{"state": status.state,
|
||||
{"friendly_name":
|
||||
pychromecast.get_friendly_name(
|
||||
status.name),
|
||||
"state": status.state,
|
||||
"options": status.options})
|
||||
else:
|
||||
statemachine.set_state(category, "none")
|
||||
|
|
Loading…
Add table
Reference in a new issue