sebr / bhyve-home-assistant

Orbit BHyve custom component for Home Assistant
MIT License
252 stars 42 forks source link

Fix not reconnecting after connection loss #155

Closed Lokilicious closed 2 years ago

Lokilicious commented 2 years ago

In my observation i encountered that the component hangs on STATE_STARTING which prevents the retry to work (due to a check for STATE_STARTING on line 159)

With this fix i set the state to STATE_STOPPED before running a retry which resolves the problem on my side.

So even if the connection drops reconnecting is working properly.