Improve msg type hint in websocket commands (#80530)

This commit is contained in:
epenet 2022-10-18 16:41:17 +02:00 committed by GitHub
parent 76bd8c431b
commit 5442d6af01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 128 additions and 104 deletions

View file

@ -61,7 +61,7 @@ def with_store(orig_func: Callable) -> Callable:
async def websocket_set_user_data(
hass: HomeAssistant,
connection: ActiveConnection,
msg: dict,
msg: dict[str, Any],
store: Store,
data: dict[str, Any],
) -> None:
@ -82,7 +82,7 @@ async def websocket_set_user_data(
async def websocket_get_user_data(
hass: HomeAssistant,
connection: ActiveConnection,
msg: dict,
msg: dict[str, Any],
store: Store,
data: dict[str, Any],
) -> None: