SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
733 stars 112 forks source link

[Bug] Deteched I/O inside the event loop #125

Closed tcallaw closed 3 years ago

tcallaw commented 3 years ago

I installed this repository via HACS today. It is not working and I am getting a warning saying: Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for wyzeapi doing I/O at custom_components/wyzeapi/smartbridge/providers/wyze/client.py, line 245: response = session.send(request, **settings)

Thanks in advance for your help

To Reproduce

Expected behavior HA is not loading any of the bulbs

System configuration System: HA Version: <2021.3.4> WyzeApi Version: <v0.5.15-vacuum-alpha.10>

configuration.yaml

wyzeapi:
   username: 
   password: 
   sensors: false

home-assistant.log

Logger: homeassistant.util.async_
Source: util/async_.py:129
First occurred: 4:42:32 PM (1 occurrences)
Last logged: 4:42:32 PM

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for wyzeapi doing I/O at custom_components/wyzeapi/smartbridge/providers/wyze/client.py, line 245: response = session.send(request, **settings)
SecKatie commented 3 years ago

Yes, this is an issue with the alpha version. Please use the latest stable. It is an issue with using some sync code inside of the async event loop.

tcallaw commented 3 years ago

Awesome...thanks. Can you confirm which is the stable version, is it "Master"

This is what I see when I go to install

[image: Screen Shot 2021-03-31 at 12.15.44 PM.png]

On Wed, Mar 31, 2021 at 7:01 AM Joshua Mulliken @.***> wrote:

Yes, this is an issue with the alpha version. Please use the latest stable. It is an issue with using some sync code inside of the async event loop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JoshuaMulliken/ha-wyzeapi/issues/125#issuecomment-811092262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBRUB3TS7NDQIH22VATCN3TGMTLFANCNFSM4Z4I5Q7A .

SecKatie commented 3 years ago

image v0.5.14 is the latest stable version

tcallaw commented 3 years ago

Got it, thanks! I had to remove and reinstall the integration. Thanks for all your work on this.

Todd

On Wed, Mar 31, 2021 at 12:39 PM Joshua Mulliken @.***> wrote:

[image: image] https://user-images.githubusercontent.com/36283247/113201225-43021a80-9237-11eb-8deb-f2c58c82d255.png v0.5.14 is the latest stable version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JoshuaMulliken/ha-wyzeapi/issues/125#issuecomment-811387274, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBRUB5FVJ3JNXH4SYK75HDTGN3AVANCNFSM4Z4I5Q7A .