Update typing (1) (#63922)
This commit is contained in:
parent
4e2cd1bec0
commit
d3b7bd25ef
11 changed files with 30 additions and 30 deletions
|
@ -15,7 +15,7 @@ import logging
|
|||
import pathlib
|
||||
import sys
|
||||
from types import ModuleType
|
||||
from typing import TYPE_CHECKING, Any, Callable, Dict, TypedDict, TypeVar, cast
|
||||
from typing import TYPE_CHECKING, Any, Callable, TypedDict, TypeVar, cast
|
||||
|
||||
from awesomeversion import (
|
||||
AwesomeVersion,
|
||||
|
@ -159,9 +159,9 @@ async def async_get_custom_components(
|
|||
|
||||
if isinstance(reg_or_evt, asyncio.Event):
|
||||
await reg_or_evt.wait()
|
||||
return cast(Dict[str, "Integration"], hass.data.get(DATA_CUSTOM_COMPONENTS))
|
||||
return cast(dict[str, "Integration"], hass.data.get(DATA_CUSTOM_COMPONENTS))
|
||||
|
||||
return cast(Dict[str, "Integration"], reg_or_evt)
|
||||
return cast(dict[str, "Integration"], reg_or_evt)
|
||||
|
||||
|
||||
async def async_get_config_flows(hass: HomeAssistant) -> set[str]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue