Skip to content

Commit

Permalink
Remove useless debug logs
Browse files Browse the repository at this point in the history
Those logs were used when adding specific features and are not necessary
anymore
  • Loading branch information
kamaradclimber committed Jan 13, 2024
1 parent c122c14 commit 9a6a9e1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions custom_components/aquarea/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions custom_components/aquarea/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion custom_components/aquarea/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a6a9e1

Please sign in to comment.