Improve msg type hint in websocket commands (#80530)
This commit is contained in:
parent
76bd8c431b
commit
5442d6af01
21 changed files with 128 additions and 104 deletions
|
@ -5,6 +5,7 @@ import logging
|
|||
import mimetypes
|
||||
from pathlib import Path
|
||||
import shutil
|
||||
from typing import Any
|
||||
|
||||
from aiohttp import web
|
||||
from aiohttp.web_request import FileField
|
||||
|
@ -323,7 +324,7 @@ class UploadMediaView(http.HomeAssistantView):
|
|||
@websocket_api.require_admin
|
||||
@websocket_api.async_response
|
||||
async def websocket_remove_media(
|
||||
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict
|
||||
hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]
|
||||
) -> None:
|
||||
"""Remove media."""
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue