Remove extra connection attempt, rm callback debug login when not connected

This commit is contained in:
SupaFlav committed 2023-08-28 15:03:43 -04:00
1 parent 3a662964b8
commit 0cadbb9931
4 files changed
+12 -16

No files matched your search

+4
View File
@@ -130,6 +130,10 @@ class BluettiSensor(CoordinatorEntity, SensorEntity):
@callback
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
if not self.coordinator.client.is_connected:
return
_LOGGER.debug("Updating state of %s", unique_id_loggable(self._attr_unique_id))
if not isinstance(self.coordinator.data, dict):
_LOGGER.debug(