Make devices and activities visible as harmony attributes (#37559)
* Make devices and activities visibile as harmony attributes * Allow restoring previous activity, add tests * fix test * Kill activity_notify with fire * remove trailing ,
This commit is contained in:
1 parent
ae7d464878
commit
76be95d7e0
8 files changed
+140
-54
No files matched your search
@@ -49,3 +49,14 @@ def find_matching_config_entries_for_host(hass, host):
|
||||
if entry.data[CONF_HOST] == host:
|
||||
return entry
|
||||
return None
|
||||
|
||||
|
||||
def list_names_from_hublist(hub_list):
|
||||
"""Extract the name key value from a hub list of names."""
|
||||
if not hub_list:
|
||||
return []
|
||||
return [
|
||||
element["name"]
|
||||
for element in hub_list
|
||||
if element.get("name") and element.get("id") != -1
|
||||
]
|
||||
Reference in new issue
Block a user