From 477cc99247425d68d634b0138add36889bdf9de3 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sun, 8 Dec 2024 10:46:43 +0100 Subject: [PATCH] Fix issue with mypy : moved setter next to property --- oin_thermostat/screen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oin_thermostat/screen.py b/oin_thermostat/screen.py index 9a32a95..e28b143 100644 --- a/oin_thermostat/screen.py +++ b/oin_thermostat/screen.py @@ -9,7 +9,7 @@ logger = logging.getLogger(__name__) COLORS = { "Bleu": [0, 0, 255], - "Blanc": [0, 0, 0], + "Blanc": [255, 255, 255], "Rouge": [255, 0, 0], "Verte": [0, 127, 31], "Jaune": [255, 255, 0], @@ -108,10 +108,6 @@ class Screen: def secondary(self): return self._secondary - @property - def secondary_pixels(self): - return self._secondary_pixels - @secondary.setter def secondary(self, value): self._secondary = value @@ -124,6 +120,10 @@ class Screen: if not self._tmp: self.set_pixels() + @property + def secondary_pixels(self): + return self._secondary_pixels + def stick_click(self, event): match (event.action, self._held): case ("held", False):