TheRealKillaruna / nano_pk

Home Assistant integration of Hargassner Nano-PK
Apache License 2.0
21 stars 17 forks source link

hass.helpers.discovery will stop working in Home Assistant 2024.11 #23

Open anderl78 opened 6 months ago

anderl78 commented 6 months ago

Hello!

Im using latest HA 2024.5.2

I discovered following warning in the logs:

Detected that custom integration 'nano_pk' accesses hass.helpers.discovery. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from discovery directly at custom_components/nano_pk/init.py

Perhaps you can look into this please?

joe68ly commented 5 months ago

Hello,

I updated to HA 2024.5.4 and now have following issues:

Detected that custom integration 'nano_pk' accesses hass.helpers.discovery. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from discovery directly at custom_components/nano_pk/init.py, line 43: await hass.helpers.discovery.async_load_platform('sensor', DOMAIN, {}, config), please report it to the author of the 'nano_pk' custom integration Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues

Seems this is same context. Would be great if you could find the problem. Thanks a lot for your great work! :-)

anderl78 commented 5 months ago

pull request for a possibel fix for file: init.py. Works for me without any warnings or errors in log....

PeHin commented 4 months ago

I also get the same error messages in my logs; Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, and Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11

anderl78 commented 4 months ago

I also get the same error messages in my logs; Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, and Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11

I tried to make a fix for this. You can take a look at my pull request to this, if you want. Would be great if you want to test it. Please replay here if it's working for you - or not...