Don't log Shelly push update failures if there are no errors (#120189)

This commit is contained in:
Shay Levy 2024-06-23 00:36:58 +03:00 committed by GitHub
parent 1ca187611d
commit 57e615aa36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,9 +404,10 @@ class ShellyBlockCoordinator(ShellyCoordinatorBase[BlockDevice]):
"ip_address": self.device.ip_address,
},
)
LOGGER.debug(
"Push update failures for %s: %s", self.name, self._push_update_failures
)
if self._push_update_failures:
LOGGER.debug(
"Push update failures for %s: %s", self.name, self._push_update_failures
)
self.async_set_updated_data(None)
def async_setup(self, pending_platforms: list[Platform] | None = None) -> None: