Remove HomeAssistantType alias from helpers (#48400)
This commit is contained in:
parent
4a353efdfb
commit
38d14702fa
19 changed files with 141 additions and 157 deletions
|
@ -12,6 +12,7 @@ from homeassistant import config_entries
|
|||
from homeassistant.const import ATTR_RESTORED, DEVICE_DEFAULT_NAME
|
||||
from homeassistant.core import (
|
||||
CALLBACK_TYPE,
|
||||
HomeAssistant,
|
||||
ServiceCall,
|
||||
callback,
|
||||
split_entity_id,
|
||||
|
@ -24,7 +25,6 @@ from homeassistant.helpers import (
|
|||
entity_registry as ent_reg,
|
||||
service,
|
||||
)
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from homeassistant.util.async_ import run_callback_threadsafe
|
||||
|
||||
from .entity_registry import DISABLED_INTEGRATION
|
||||
|
@ -50,7 +50,7 @@ class EntityPlatform:
|
|||
def __init__(
|
||||
self,
|
||||
*,
|
||||
hass: HomeAssistantType,
|
||||
hass: HomeAssistant,
|
||||
logger: Logger,
|
||||
domain: str,
|
||||
platform_name: str,
|
||||
|
@ -633,7 +633,7 @@ current_platform: ContextVar[EntityPlatform | None] = ContextVar(
|
|||
|
||||
@callback
|
||||
def async_get_platforms(
|
||||
hass: HomeAssistantType, integration_name: str
|
||||
hass: HomeAssistant, integration_name: str
|
||||
) -> list[EntityPlatform]:
|
||||
"""Find existing platforms."""
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue