Remove HomeAssistantType alias - Part 4 (#49515)
This commit is contained in:
parent
77ae4abc6e
commit
168b3c100c
22 changed files with 63 additions and 68 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue