Change HomeAssistantType -> HomeAssistant in modbus (#49400)

This commit is contained in:
jan iversen 2021-04-19 10:13:32 +02:00 committed by GitHub
parent cf51e07953
commit 0f90678e0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 26 deletions

View file

@ -21,10 +21,11 @@ from homeassistant.const import (
CONF_SWITCHES,
STATE_ON,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.event import async_track_time_interval
from homeassistant.helpers.restore_state import RestoreEntity
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
from homeassistant.helpers.typing import ConfigType
from .const import (
CALL_TYPE_COIL,
@ -88,7 +89,7 @@ PLATFORM_SCHEMA = vol.All(
async def async_setup_platform(
hass: HomeAssistantType, config: ConfigType, async_add_entities, discovery_info=None
hass: HomeAssistant, config: ConfigType, async_add_entities, discovery_info=None
):
"""Read configuration and create Modbus switches."""
switches = []