Improve typing of entity.entity_sources (#99407)
* Improve typing of entity.entity_sources * Calculate entity info source when generating WS response * Adjust typing * Update tests
This commit is contained in:
parent
cc252f705f
commit
51576b7214
8 changed files with 39 additions and 26 deletions
|
@ -596,7 +596,7 @@ async def handle_render_template(
|
|||
|
||||
|
||||
def _serialize_entity_sources(
|
||||
entity_infos: dict[str, dict[str, str]]
|
||||
entity_infos: dict[str, entity.EntityInfo]
|
||||
) -> dict[str, Any]:
|
||||
"""Prepare a websocket response from a dict of entity sources."""
|
||||
result = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue