Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
57 stars 49 forks source link

Re-initialize variable to default state for each attempt #625

Closed xconverge closed 3 months ago

xconverge commented 3 months ago

Fixes the behavior I saw here https://github.com/home-assistant/core/issues/114196

My guess is something with newer network controller versions changed (8.1.XX), and this check isn't perfect and the request returns sometimes at startup. We could tweak this check or just reset the variable on each attempt and allow the websocket connection to be attempted/fail independently of logging in after this step of the setup process