Remove HomeAssistantType alias from entity components - Part 1 (#48467)

This commit is contained in:
Franck Nijhof 2021-03-30 01:24:36 +02:00 committed by GitHub
parent bb9da22a84
commit 855b68faa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 60 additions and 76 deletions

View file

@ -15,10 +15,9 @@ from homeassistant.components.alexa import (
)
from homeassistant.components.google_assistant import const as gc, smart_home as ga
from homeassistant.const import HTTP_OK
from homeassistant.core import Context, callback
from homeassistant.core import Context, HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.event import async_call_later
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.util.aiohttp import MockRequest
from . import alexa_config, google_config, utils
@ -31,7 +30,7 @@ class CloudClient(Interface):
def __init__(
self,
hass: HomeAssistantType,
hass: HomeAssistant,
prefs: CloudPreferences,
websession: aiohttp.ClientSession,
alexa_user_config: dict[str, Any],