Remove HomeAssistantType alias - Part 4 (#49515)

This commit is contained in:
Franck Nijhof 2021-04-21 12:18:42 +02:00 committed by GitHub
parent 77ae4abc6e
commit 168b3c100c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 63 additions and 68 deletions

View file

@ -7,7 +7,7 @@ from freebox_api.exceptions import InsufficientPermissionsError
from homeassistant.components.switch import SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.core import HomeAssistant
from .const import DOMAIN
from .router import FreeboxRouter
@ -16,7 +16,7 @@ _LOGGER = logging.getLogger(__name__)
async def async_setup_entry(
hass: HomeAssistantType, entry: ConfigEntry, async_add_entities
hass: HomeAssistant, entry: ConfigEntry, async_add_entities
) -> None:
"""Set up the switch."""
router = hass.data[DOMAIN][entry.unique_id]