From 9a295a75695fd7f590ccb495614699dc5faf0098 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 9 Dec 2024 15:56:30 +0100 Subject: [PATCH] Move cls attribute --- oin_thermostat/select.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oin_thermostat/select.py b/oin_thermostat/select.py index d25a195..645e3c0 100644 --- a/oin_thermostat/select.py +++ b/oin_thermostat/select.py @@ -10,6 +10,8 @@ logger = logging.getLogger(__name__) class Selector: + default_data = {"temperature": None, "mode": None, "switch": None} + def __init__(self, send_data: Callable[[dict[str, Any]], Any]): self.stick = SenseHat().stick self.temperature: float | None = None @@ -18,7 +20,6 @@ class Selector: self.preset_modes: list[str] = [] self.send_data = send_data self.switch_held = False - self.default_data = {"temperature": None, "mode": None, "switch": None} self.stick.direction_middle = self.toggle