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

register_static_path is deprecated because it does blocking I/O in the event loop #429

Closed
1 task done
clau-bucur opened this issue Jul 10, 2024 · 2 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@clau-bucur
Copy link
Contributor

What happened?

Upon start, HA logs the following warning:

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'smart_irrigation' 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("/api/panel_custom/smart-irrigation", "/config/custom_components/smart_irrigation/frontend/dist/smart-irrigation.js", False)])`; This function will be removed in 2025.7 at custom_components/smart_irrigation/panel.py, line 32: hass.http.register_static_path(PANEL_URL, view_url, False), please create a bug report at https://github.com/jeroenterheerdt/HASmartIrrigation/issues

How to reproduce

Just restart HA.

Diagnostics file: config_entry-smart_irrigation-54a29ef14b286103055503f5030ddb5a.json

Relevant log output

No response

Which version are you running?

2024.7.4

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@clau-bucur clau-bucur added the bug Something isn't working label Jul 10, 2024
@jeroenterheerdt
Copy link
Owner

thanks - I noticed this too but it seems like it's a bit too early to move to this other function as I ran into compat issues.

@lucode
Copy link

lucode commented Oct 18, 2024

Ok this issue seems not to cause problems with HA Automations, but it certainly does if you are using Node Red.
Since about 3 month I have severe troubles with Node Red, in various ways. And it seems that I'm not the only one, but I can't verify if others have installed Smart Irrigation too.

The issues caused 3 types of problems.

  1. Very slow communication between HA and Node Red, see issue Very slow communication between HA and Node Red hassio-addons/addon-node-red#1923
  2. Constant errors in Node Red, "Entity could not be found in cache for entityId:"
  3. Various severe issues if you are using Node Red Companion Integration see: All of the sudden stopped working zachowj/hass-node-red#300

I would be very happy if someone could fix this issue, unfortunately I can't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants