From 9a6a9e132a5d64f6c5ec16ae7319bd7720935e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Seux?= Date: Sat, 13 Jan 2024 12:50:51 +0100 Subject: [PATCH] Remove useless debug logs Those logs were used when adding specific features and are not necessary anymore --- custom_components/aquarea/number.py | 3 --- custom_components/aquarea/select.py | 3 --- custom_components/aquarea/sensor.py | 1 - 3 files changed, 7 deletions(-) diff --git a/custom_components/aquarea/number.py b/custom_components/aquarea/number.py index 8ff0596..611a00a 100644 --- a/custom_components/aquarea/number.py +++ b/custom_components/aquarea/number.py @@ -96,9 +96,6 @@ async def async_added_to_hass(self) -> None: @callback def message_received(message): """Handle new MQTT messages.""" - _LOGGER.debug( - f"Received message for {self.entity_description.name}: {message}" - ) if self.entity_description.state is not None: self._attr_native_value = self.entity_description.state(message.payload) else: diff --git a/custom_components/aquarea/select.py b/custom_components/aquarea/select.py index e71d638..beaf27f 100644 --- a/custom_components/aquarea/select.py +++ b/custom_components/aquarea/select.py @@ -83,9 +83,6 @@ async def async_added_to_hass(self) -> None: @callback def message_received(message): """Handle new MQTT messages.""" - _LOGGER.debug( - f"Received message for {self.entity_description.name}: {message}" - ) if self.entity_description.state is not None: self._attr_current_option = self.entity_description.state( message.payload diff --git a/custom_components/aquarea/sensor.py b/custom_components/aquarea/sensor.py index 32405e5..720e2b1 100644 --- a/custom_components/aquarea/sensor.py +++ b/custom_components/aquarea/sensor.py @@ -226,7 +226,6 @@ def chunks3(lst): for i, candidate in enumerate(chunks3(values)): if len(list(filter(lambda el: el is not None, candidate))) > 0: - _LOGGER.debug(f"Chunk {i} {candidate} has data") return sum(filter(lambda el: el is not None, candidate)) _LOGGER.debug(f"No values at all, here the values: {values}, assuming sum is 0") return 0