Replace HomeAssistantType with HomeAssistant (#53545)

This commit is contained in:
Milan Meulemans 2021-07-27 12:30:56 +02:00 committed by GitHub
parent ca020e1f87
commit 0471b27179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 61 additions and 52 deletions

View file

@ -13,8 +13,9 @@ from homeassistant.const import (
CONF_PORT,
CONF_USERNAME,
)
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
from homeassistant.helpers.typing import ConfigType
from .const import CONF_DIM_MODE, CONF_SK_NUM_TRIES, DOMAIN
@ -22,7 +23,7 @@ _LOGGER = logging.getLogger(__name__)
def get_config_entry(
hass: HomeAssistantType, data: ConfigType
hass: HomeAssistant, data: ConfigType
) -> config_entries.ConfigEntry | None:
"""Check config entries for already configured entries based on the ip address/port."""
return next(