From 7785eee6bc6639f5296328cf13e1f2c535bb2bc0 Mon Sep 17 00:00:00 2001 From: Alex X Date: Thu, 5 Dec 2024 16:24:28 +0300 Subject: [PATCH] Fix HomeAssistantType deprecation warning --- custom_components/yandex_dialogs/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)