Skip to content

Commit

Permalink
Fix HomeAssistantType deprecation warning #32
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 6, 2024
1 parent f7dbf4c commit 164c8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/dataplicity/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from subprocess import Popen, PIPE

from aiohttp import ClientSession
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.core import HomeAssistant

_LOGGER = logging.getLogger(__name__)

Expand All @@ -25,7 +25,7 @@ async def register_device(session: ClientSession, token: str):
return None


async def fix_middleware(hass: HomeAssistantType):
async def fix_middleware(hass: HomeAssistant):
"""Dirty hack for HTTP integration. Plug and play for usual users...
[v2021.7] Home Assistant will now block HTTP requests when a misconfigured
Expand Down

0 comments on commit 164c8d6

Please sign in to comment.