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:
parent
2e084f260e
commit
6992e24263
23 changed files with 141 additions and 149 deletions
|
@ -12,9 +12,9 @@ from homeassistant.components.switch import (
|
|||
SwitchEntity,
|
||||
)
|
||||
from homeassistant.const import ATTR_VOLTAGE
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
import homeassistant.helpers.device_registry as dr
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from . import CONF_SWITCH, DOMAIN as TPLINK_DOMAIN
|
||||
from .common import add_available_devices
|
||||
|
@ -30,7 +30,7 @@ MAX_ATTEMPTS = 300
|
|||
SLEEP_TIME = 2
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistantType, config_entry, async_add_entities):
|
||||
async def async_setup_entry(hass: HomeAssistant, config_entry, async_add_entities):
|
||||
"""Set up switches."""
|
||||
entities = await hass.async_add_executor_job(
|
||||
add_available_devices, hass, CONF_SWITCH, SmartPlugSwitch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue