Rename HomeAssistantType —> HomeAssistant, integrations t* - v* (#49544)
* Integration vizio: HomeAssistantType -> HomeAssistant. * Integration velbus: HomeAssistantType -> HomeAssistant. * Integration vacuum: HomeAssistantType -> HomeAssistant. * Integration upnp: HomeAssistantType -> HomeAssistant. * Integration upcloud: HomeAssistantType -> HomeAssistant. * Integration twinkly: HomeAssistantType -> HomeAssistant. * Integration tts: HomeAssistantType -> HomeAssistant. * Integration tradfri: HomeAssistantType -> HomeAssistant. * Integration traccar: HomeAssistantType -> HomeAssistant. * Integration tplink: HomeAssistantType -> HomeAssistant.
This commit is contained in:
@@ -21,14 +21,13 @@ from homeassistant.const import (
|
||||
STATE_ON,
|
||||
STATE_PROBLEM,
|
||||
)
|
||||
from homeassistant.core import CALLBACK_TYPE
|
||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
async_dispatcher_send,
|
||||
)
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
from homeassistant.helpers.update_coordinator import (
|
||||
CoordinatorEntity,
|
||||
DataUpdateCoordinator,
|
||||
@@ -81,7 +80,7 @@ class UpCloudDataUpdateCoordinator(
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistantType,
|
||||
hass: HomeAssistant,
|
||||
*,
|
||||
cloud_manager: upcloud_api.CloudManager,
|
||||
update_interval: timedelta,
|
||||
@@ -119,7 +118,7 @@ class UpCloudHassData:
|
||||
scan_interval_migrations: dict[str, int] = dataclasses.field(default_factory=dict)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistantType, config) -> bool:
|
||||
async def async_setup(hass: HomeAssistant, config) -> bool:
|
||||
"""Set up UpCloud component."""
|
||||
domain_config = config.get(DOMAIN)
|
||||
if not domain_config:
|
||||
@@ -155,7 +154,7 @@ def _config_entry_update_signal_name(config_entry: ConfigEntry) -> str:
|
||||
|
||||
|
||||
async def _async_signal_options_update(
|
||||
hass: HomeAssistantType, config_entry: ConfigEntry
|
||||
hass: HomeAssistant, config_entry: ConfigEntry
|
||||
) -> None:
|
||||
"""Signal config entry options update."""
|
||||
async_dispatcher_send(
|
||||
@@ -163,7 +162,7 @@ async def _async_signal_options_update(
|
||||
)
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistantType, config_entry: ConfigEntry) -> bool:
|
||||
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
|
||||
"""Set up the UpCloud config entry."""
|
||||
|
||||
manager = upcloud_api.CloudManager(
|
||||
|
||||
Reference in New Issue
Block a user