Closed dvx76 closed 3 weeks ago
@dvx76 any idea what's causing the tests to fail?
@dvx76 any idea what's causing the tests to fail?
Looking at it. I think there is at least one test which tests exactly this scenario where the socket gets closed abruptly without there being an on_disconnect event.
@dvx76 any idea what's causing the tests to fail?
Looking at it. I think there is at least one test which tests exactly this scenario where the socket gets closed abruptly without there being an on_disconnect event.
Alternative solution: keep the on_socket_close but remove the reconnect call in it. Need to test this out in HA but effect should be the same and it doesn't break the tests.
Not fully clear about this yet but should at least help avoid skodaconnect/homeassistant-myskoda#140 and #123
When something causes the MQTT connection to drop both the
on_disconnect
and theon_socket_close
fire and both trigger a reconnect. This leads to aConcurrentSubscribeError
and all kinds of weird networking and stability issues throughout HA as a result.