Integrations h*: Rename HomeAssistantType to HomeAssistant. (#49590)

This commit is contained in:
jan iversen 2021-04-23 09:49:02 +02:00 committed by GitHub
parent a5a3c98aff
commit 017e32a0cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 73 additions and 79 deletions

View file

@ -23,8 +23,9 @@ from homeassistant.const import (
STATE_UNKNOWN,
TIME_SECONDS,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.typing import HomeAssistantType, StateType
from homeassistant.helpers.typing import StateType
from . import HuaweiLteBaseEntity
from .const import (
@ -329,7 +330,7 @@ SENSOR_META: dict[str | tuple[str, str], SensorMeta] = {
async def async_setup_entry(
hass: HomeAssistantType,
hass: HomeAssistant,
config_entry: ConfigEntry,
async_add_entities: Callable[[list[Entity], bool], None],
) -> None: