Fockaert / rika-firenet-custom-component

MIT License
21 stars 17 forks source link

not updating after ISP disconnected #21

Open TheSkwi opened 12 months ago

TheSkwi commented 12 months ago

When internet goes off for multiples secondes then comes back , the script doesn't update data anymore (have to reload integration).

It seems it get lost in core.py>get_stove_state>data = self._client.get(url).json(), the call never finish When I shutdown/reboot HA I can see that it was still fetching data for ~40mn (instead of <1s)

last working call : 2023-11-09 20:50:10.372 DEBUG (MainThread) [custom_components.rika_firenet.core] Finished fetching rika_firenet data in 0.057 seconds (success: True)

never ending call at HA shutdown: 2023-11-09 21:28:29.914 DEBUG (MainThread) [custom_components.rika_firenet.core] Finished fetching rika_firenet data in 2269.599 seconds (success: True)