magico13 / ha-emporia-vue

Home Assistant Integration for Emporia Vue Energy Monitor
MIT License
474 stars 64 forks source link

Blocking call inside event loop #282

Open sushain97 opened 2 months ago

sushain97 commented 2 months ago

I believe this is a new warning that HA logs:

2024-06-13 22:38:43.797 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'emporia_vue' at custom_components/emporia_vue/__init__.py, line 564: tz_info = dateutil.tz.gettz(tz_string) (offender: /usr/local/lib/python3.12/site-packages/dateutil/tz/tz.py, line 464: fileobj = open(fileobj, 'rb')), please create a bug report at https://github.com/magico13/ha-emporia-vue/issues
jem commented 1 month ago

Another report here.

bdraco commented 3 weeks ago

https://developers.home-assistant.io/blog/2024/05/19/fix_zoneinfo_blocking_io?_highlight=zoneinfo