jheling / freeathome

Free@Home component for Home Assistant
112 stars 41 forks source link

Component initializes in MainThread instead of using syncworkers #48

Closed miezie closed 3 years ago

miezie commented 4 years ago

HomeAssistant has loaders in place for components using seperate threads etc. A step in making the freeathome component part of HA and improving loading speeds is to make it not use the mainthread for loading.

This should get fixed so a syncworker will load the component and make it none blocking.

miezie commented 4 years ago

Also causing issues in new versions:

Logger: homeassistant.util.async Source: util/async.py:120 First occurred: 8:43:52 PM (1 occurrences) Last logged: 8:43:52 PM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for freeathome doing I/O at custom_components/freeathome/fah/settings.py, line 13: with urllib.request.urlopen(http) as url: