Connection lost with subscribe_states
roger- opened this issue · comments
Roger D commented
My device is a bit unstable and subscribe_states() does not seem to reconnect automatically. Can I use ReconnectLogic or something?
Jesse Hills commented
Yes that is what it is for.
Roger D commented
Any sample code?
Jesse Hills commented
Not exactly, but HAs code uses it: https://github.com/home-assistant/core/blob/dev/homeassistant/components/esphome/__init__.py#L299