Remove extra connection attempt, rm callback debug login when not connected
This commit is contained in:
1 parent
3a662964b8
commit
0cadbb9931
4 files changed
+12
-16
No files matched your search
@@ -114,6 +114,10 @@ class BluettiSwitch(CoordinatorEntity, SwitchEntity):
|
||||
@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.error(
|
||||
|
||||
Reference in new issue
Block a user