Integrations m*: Rename HomeAssistantType to HomeAssistant. (#49567)

This commit is contained in:
jan iversen 2021-04-22 23:53:37 +02:00 committed by GitHub
parent 90ede05c82
commit 9410aefd0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 79 additions and 73 deletions

View file

@ -13,10 +13,10 @@ import voluptuous as vol
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_TOKEN, CONF_USERNAME
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.util import Throttle
from .const import DOMAIN
@ -41,7 +41,7 @@ CONFIG_SCHEMA = vol.Schema(
)
async def async_setup(hass: HomeAssistantType, config: ConfigEntry):
async def async_setup(hass: HomeAssistant, config: ConfigEntry):
"""Establish connection with MELCloud."""
if DOMAIN not in config:
return True
@ -58,7 +58,7 @@ async def async_setup(hass: HomeAssistantType, config: ConfigEntry):
return True
async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry):
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Establish connection with MELClooud."""
conf = entry.data
mel_devices = await mel_devices_setup(hass, conf[CONF_TOKEN])