Skip to content

Commit db66d55

Browse files
committed
flush data when updater encounters an error
1 parent c7db416 commit db66d55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/ha_carrier/carrier_data_update_coordinator.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ async def _async_update_data(self):
8181
return [system.__repr__() for system in self.systems]
8282
except Exception as error:
8383
_LOGGER.exception(error)
84+
self.data_flush = True
8485
raise UpdateFailed(error) from error
8586

8687
def system(self, system_serial: str) -> System:

0 commit comments

Comments
 (0)