mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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:
|
if status:
|
||||||
statemachine.set_state(category, status.name,
|
statemachine.set_state(category, status.name,
|
||||||
{"state": status.state,
|
{"friendly_name":
|
||||||
|
pychromecast.get_friendly_name(
|
||||||
|
status.name),
|
||||||
|
"state": status.state,
|
||||||
"options": status.options})
|
"options": status.options})
|
||||||
else:
|
else:
|
||||||
statemachine.set_state(category, "none")
|
statemachine.set_state(category, "none")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user