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