mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
ChromeCast observer will add friendly name as attribute
This commit is contained in:
parent
7637b6ca0e
commit
9531c6643e
@ -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…
x
Reference in New Issue
Block a user