humbertogontijo / homeassistant-roborock

Roborock integration for Home Assistant. This integration uses your devices from the Roborock App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation Warnings: Issues with hacs and roborock Integrations

tomasburancgi opened this issue · comments

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: tomas.buran.cgi@gmail.com 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!

See IMPORTANT NOTE!!

The warnings have been fixed in the main branch.

Duplicated #649