doudz / homeassistant-zigate

zigate component for Home Assistant
MIT License
48 stars 13 forks source link

Home assistant warning: Detected I/O inside the event loop #121

Closed MichaelBitard closed 4 years ago

MichaelBitard commented 4 years ago

Each time I access to zigate admin, it triggers these logs:

2020-06-06 15:01:00 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for zigate doing I/O at custom_components/zigate/__init__.py, line 784: r = requests.get('http://localhost:9998'+request.query.get('q', '/'), headers=headers)

I'll try to have a look at it, see if I can make a PR

doudz commented 4 years ago

I already fixed it using aiohttp instead of requests lib. I will push it soon

MichaelBitard commented 4 years ago

Awesome.

I'll let you close this once it's fixed? Maybe you prefer to close it immediately?

doudz commented 4 years ago

We should keep it as reminder

doudz commented 4 years ago

Fixed