Sian-Lee-SA / Home-Assistant-Switch-Manager

Switch manager is a centralised component to handle button pushes for your wireless switches. This includes anything passed through the event bus. The component relies on switch blueprints which is easily made to allow GUI configuration of your switches and their button pushes. This helps remove clutter from the automations.
Other
206 stars 79 forks source link

HA 2024.6.0: Detected blocking call to open inside the event loop #229

Closed noxhirsch closed 1 month ago

noxhirsch commented 1 month ago

Hi, in Home Assistant 2024.6.0 (starting with b0) there's a lot of warnings about deteced blocking calls to open inside the event loop. Since it's just a warning and everything seems to work fine, I assume that this is just about performance - so not a high priority issue.

2024-05-30 10:58:32.606 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'switch_manager' at custom_components/switch_manager/helpers.py, line 47: data = load_yaml(f) (offender: /usr/src/homeassistant/homeassistant/util/yaml/loader.py, line 226: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager/issues
Stooovie commented 1 month ago

SM doesn't open at all for me on 2024.6.0 release version. I get blank page.

Sian-Lee-SA commented 1 month ago

Addressed with latest release 1.3.4