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

Deprecation Warnings: Issues with hacs and roborock Integrations #654

Open
tomasburancgi opened this issue Aug 18, 2024 · 2 comments
Open

Comments

@tomasburancgi
Copy link

Hello,

I am using Home Assistant with the HACS and Roborock integrations installed, and I have encountered the following deprecation warnings in the Home Assistant logs:

Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues

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' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)]); This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, 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 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues

and

Detected that custom integration 'roborock' calls async_forward_entry_setup for integration, roborock with title: [email protected] and entry_id: f56951655f638ba0c743e407340b8ccf, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/roborock/init.py, line 152: hass.async_create_task(, please create a bug report at https://github.com/humbertogontijo/homeassistant-roborock/issues

According to these warnings, some methods used in both HACS and Roborock integrations are marked as deprecated and will be removed or modified in future versions of Home Assistant (e.g., 2024.9, 2025.6, 2025.7).

Could you please consider updating the code for these integrations to prevent issues when these methods are removed?

Thank you very much for your work and support of these great integrations!

@ufozone
Copy link
Contributor

ufozone commented Aug 22, 2024

See IMPORTANT NOTE!!

The warnings have been fixed in the main branch.

@ufozone
Copy link
Contributor

ufozone commented Aug 22, 2024

Duplicated #649

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

2 participants