From e7ca999711d95625106b6cb0528b88f28268cffb Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 11 Nov 2024 16:50:14 +0100 Subject: [PATCH] Remove prints --- oin_ha/display/__init__.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/oin_ha/display/__init__.py b/oin_ha/display/__init__.py index 58a5396..d2dd9d4 100644 --- a/oin_ha/display/__init__.py +++ b/oin_ha/display/__init__.py @@ -106,8 +106,6 @@ class Light: def on_message(self, client, userdata, message): data = message.payload.decode() - print(message.topic) - print(data) match message.topic.rsplit("/", maxsplit=2): case [self.base_topic, i, "command"]: @@ -212,7 +210,6 @@ class Light: self.timer.cancel() pixels = self.to_pixels(self._pres[self._i]) - print(pixels) self.sense.set_pixels(pixels) self.timer = Timer(0.25, self.display_value, kwargs=dict(timer=True)) @@ -238,10 +235,8 @@ class Light: if event.action == ACTION_RELEASED: self._i = (self._i + 1) % self._n self.update_value() - print(f"switch to {self._i}") def switch_screen_rev(self, event): if event.action == ACTION_RELEASED: self._i = (self._i - 1) % self._n self.update_value() - print(f"switch to {self._i}")