diff --git a/custom_components/yandex_dialogs/utils.py b/custom_components/yandex_dialogs/utils.py index 61cbc7f..3f12d4c 100644 --- a/custom_components/yandex_dialogs/utils.py +++ b/custom_components/yandex_dialogs/utils.py @@ -4,8 +4,8 @@ import re from os import path +from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_create_clientsession -from homeassistant.helpers.typing import HomeAssistantType _LOGGER = logging.getLogger(__name__) @@ -13,7 +13,7 @@ async def create_dialog( - hass: HomeAssistantType, name: str, hass_url: str, cookies: str + hass: HomeAssistant, name: str, hass_url: str, cookies: str ) -> (str, str): try: raw = base64.b64decode(cookies)