Skip to content

Commit

Permalink
Merge pull request #94 from MikeEvans/fix-issue-93
Browse files Browse the repository at this point in the history
Fix issue #93 - use of deprecated hass.helpers.aiohttp_client
  • Loading branch information
tadasdanielius authored Jul 4, 2024
2 parents 629231f + 73ea9d3 commit e78a280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/daikin_altherma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.util import Throttle
from pyaltherma.comm import DaikinWSConnection
from pyaltherma.controllers import AlthermaController
Expand All @@ -26,7 +27,7 @@


async def setup_api_instance(hass, host):
session = hass.helpers.aiohttp_client.async_get_clientsession()
session = async_get_clientsession(hass)
conn = DaikinWSConnection(session, host)
device = AlthermaController(conn)
await device.discover_units()
Expand Down

0 comments on commit e78a280

Please sign in to comment.