From 57e615aa3697c5bed443ab87a4ca3f2b1d537a31 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Sun, 23 Jun 2024 00:36:58 +0300 Subject: [PATCH] Don't log Shelly push update failures if there are no errors (#120189) --- homeassistant/components/shelly/coordinator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/shelly/coordinator.py b/homeassistant/components/shelly/coordinator.py index f15eca51413..82d358b33d8 100644 --- a/homeassistant/components/shelly/coordinator.py +++ b/homeassistant/components/shelly/coordinator.py @@ -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: