marq24 / ha-senec-v3

SENEC.Home V2.x/V3/V4 Integration for Home Assistant that will work with the recent changes introduced by SENEC (supporting https) - successfully tested with latest MCU Version: 0827 (Feb 2024).
Apache License 2.0
53 stars 4 forks source link

Accessing `hass.helpers.aiohttp_client` will stop working in HA 2024.11 #104

Closed sehraf closed 1 week ago

sehraf commented 1 month ago

With which version of the integration you have an issue?

WEB.API: mein-senec.de Portal

Multiple Systems Environment?

Checklist

Add a description

I've setup the web api and found this in the logs: Home Assistant complains about usage of a deprecated feature:

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'senec' accesses hass.helpers.aiohttp_client. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from aiohttp_client directly at custom_components/senec/config_flow.py, line 177: web_session = self.hass.helpers.aiohttp_client.async_create_clientsession(auto_cleanup=False), please create a bug report at https://github.com/marq24/ha-senec-v3/issues

While 2024.11 isn't around the corner, the "will stop working" part might be of your interest.

Add your DEBUG log output

2024-09-18 12:55:40.536 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'senec' accesses hass.helpers.aiohttp_client. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from aiohttp_client directly at custom_components/senec/config_flow.py, line 177: web_session = self.hass.helpers.aiohttp_client.async_create_clientsession(auto_cleanup=False), please create a bug report at https://github.com/marq24/ha-senec-v3/issues
marq24 commented 1 month ago

thanks for the hint - will be fixed till Nov 2024

marq24 commented 1 week ago

done...