forked from home-assistant/core
ChromeCast observer will add friendly name as attribute
This commit is contained in:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user