wiserHomeAssistantPlatform
wiserHomeAssistantPlatform copied to clipboard
Frontend __init__ : Deprecated code in 2025.7
I have created an issue for that, number 485 but it contains 2 issues. Sorry for not being precise enough and generating 2 different issues. This is the issue on the 3.4.8 of the Wiser platform. I propose a fix in the joined file in wiser\frontend_init__.py
logs:
2024-09-07 15:49:44.620 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'wiser' 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("/wiser", "/config/custom_components/wiser/frontend", False)])
; This function will be removed in 2025.7 at custom_components/wiser/frontend/init.py, line 24: self.hass.http.register_static_path(, please create a bug report at https://github.com/asantaga/wiserHomeAssistantPlatform/issues
2024-09-07 15:49:44.654 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to listdir with args ('/config/custom_components/wiser/frontend',) inside the event loop by custom integration 'wiser' at custom_components/wiser/frontend/init.py, line 123: filename for filename in os.listdir(path) if filename.endswith(".gz") (offender: /config/custom_components/wiser/frontend/init.py, line 123: filename for filename in os.listdir(path) if filename.endswith(".gz")), please create a bug report at https://github.com/asantaga/wiserHomeAssistantPlatform/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#listdir
Traceback (most recent call last):
File "