Remove HomeAssistantType alias - Part 3 (#49339)

This commit is contained in:
Franck Nijhof 2021-04-17 12:48:03 +02:00 committed by GitHub
parent 7a9385d857
commit 006bcde435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 101 additions and 111 deletions

View file

@ -21,11 +21,10 @@ from homeassistant.const import (
CONF_PROTOCOL,
CONF_USERNAME,
)
from homeassistant.core import CALLBACK_TYPE, callback
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.event import async_track_time_interval
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from homeassistant.util import dt as dt_util
@ -187,7 +186,7 @@ class AsusWrtDevInfo:
class AsusWrtRouter:
"""Representation of a AsusWrt router."""
def __init__(self, hass: HomeAssistantType, entry: ConfigEntry) -> None:
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Initialize a AsusWrt router."""
self.hass = hass
self._entry = entry