Update typing (4) [u-z] (#63925)

This commit is contained in:
Marc Mueller 2022-01-11 21:26:45 +01:00 committed by GitHub
parent d3b7bd25ef
commit bcb93d95bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 20 deletions

View file

@ -5,7 +5,7 @@ import asyncio
from concurrent import futures
from functools import partial
import json
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Final
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Final
from homeassistant.core import HomeAssistant
from homeassistant.helpers.json import JSONEncoder
@ -15,10 +15,10 @@ if TYPE_CHECKING:
WebSocketCommandHandler = Callable[
[HomeAssistant, "ActiveConnection", Dict[str, Any]], None
[HomeAssistant, "ActiveConnection", dict[str, Any]], None
]
AsyncWebSocketCommandHandler = Callable[
[HomeAssistant, "ActiveConnection", Dict[str, Any]], Awaitable[None]
[HomeAssistant, "ActiveConnection", dict[str, Any]], Awaitable[None]
]
DOMAIN: Final = "websocket_api"