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:
Erik Montnemery 2023-09-12 20:41:26 +02:00 committed by GitHub
parent cc252f705f
commit 51576b7214
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 26 deletions

View file

@ -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 = {}