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:
jan iversen
2021-04-22 16:53:57 +02:00
committed by GitHub
parent 2e084f260e
commit 6992e24263
23 changed files with 141 additions and 149 deletions

View File

@@ -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(