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

@@ -104,6 +104,10 @@ class BluettiBinarySensor(CoordinatorEntity, BinarySensorEntity):
@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(