code cleanup
This commit is contained in:
1 parent
a50deaae37
commit
842f133cd4
4 files changed
+16
-191
No files matched your search
@@ -99,7 +99,7 @@ class BluettiBinarySensor(CoordinatorEntity, BinarySensorEntity):
|
||||
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
|
||||
|
||||
_LOGGER.debug("Updating state of %s", unique_id_loggable(self._attr_unique_id))
|
||||
|
||||
Reference in new issue
Block a user