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
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