Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #93 - use of deprecated hass.helpers.aiohttp_client #94

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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