Skip to content

Commit

Permalink
Fix HomeAssistantType deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 5, 2024
1 parent abb79cf commit 7785eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/yandex_dialogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
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__)

INDEX = "https://dialogs.yandex.ru/developer"


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)
Expand Down

0 comments on commit 7785eee

Please sign in to comment.