mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Tweak entity/source WS command handler (#100272)
This commit is contained in:
parent
e5de7eacad
commit
aedd06b9a9
@ -599,10 +599,10 @@ def _serialize_entity_sources(
|
|||||||
entity_infos: dict[str, entity.EntityInfo]
|
entity_infos: dict[str, entity.EntityInfo]
|
||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
"""Prepare a websocket response from a dict of entity sources."""
|
"""Prepare a websocket response from a dict of entity sources."""
|
||||||
result = {}
|
return {
|
||||||
for entity_id, entity_info in entity_infos.items():
|
entity_id: {"domain": entity_info["domain"]}
|
||||||
result[entity_id] = {"domain": entity_info["domain"]}
|
for entity_id, entity_info in entity_infos.items()
|
||||||
return result
|
}
|
||||||
|
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user