ChromeCast observer will add friendly name as attribute

This commit is contained in:
Paulus Schoutsen 2013-12-10 19:45:57 -08:00
parent 7637b6ca0e
commit 9531c6643e

View file

@ -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")