HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
49 stars 9 forks source link

Blocking call to open inside the event loop #130

Open illuzn opened 5 days ago

illuzn commented 5 days ago

Version of the custom_component

0.7.3

Configuration

Not Applicable

Describe the bug

Can be fixed by a similar fix to #123. Similar Issue to #127.

When HA tries to restore entities it reaches this open call: https://github.com/HASwitchPlate/openHASP-custom-component/blob/24f071cb510f3da0e5c801ccd52eb5abad9c4d6b/custom_components/openhasp/__init__.py#L353

Debug log

2024-07-03 18:24:41.528 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'openhasp' at custom_components/openhasp/__init__.py, line 353: with open( (offender: /config/custom_components/openhasp/__init__.py, line 353: with open(), please create a bug report at https://github.com/HASwitchPlate/openHASP-custom-component/issues
dgomes commented 5 days ago

this is literally the fix introduced in #123 it was supposed to have fixed :(