code cleanup

This commit is contained in:
Patrick762 committed 2024-02-18 16:49:27 +01:00
1 parent a50deaae37
commit 842f133cd4
4 files changed
+16 -191

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ class BluettiSensor(CoordinatorEntity, SensorEntity):
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
if self.coordinator.persistent_conn and not self.coordinator.client.is_connected:
if self.coordinator.reader.persistent_conn and not self.coordinator.reader.client.is_connected:
return
if self.coordinator.data is None: