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

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

Open
anderl78 opened this issue May 8, 2024 · 4 comments
Open

Comments

@anderl78
Copy link

anderl78 commented May 8, 2024

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
Copy link

joe68ly commented May 22, 2024

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
Copy link
Author

anderl78 commented Jun 17, 2024

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

@PeHin
Copy link

PeHin commented Jul 3, 2024

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
Copy link
Author

anderl78 commented Jul 4, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants