From 2b6b7f4db0bceafddbbdf14001cfca1f94d03e12 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 21 Aug 2024 16:01:25 +0800 Subject: [PATCH] State --- pytec/pytec/gui/model/thermostat.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 821d558..6c46972 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -3,9 +3,16 @@ from qasync import asyncSlot from pytec.gui.model.property import Property, PropertyMeta import asyncio import logging +from enum import Enum from pytec.aioclient import AsyncioClient +class ThermostatConnectionState(Enum): + STATE_DISCONNECTED = "disconnected" + STATE_CONNECTING = "connecting" + STATE_CONNECTED = "connected" + + class Thermostat(QObject, metaclass=PropertyMeta): hw_rev = Property(dict) fan = Property(dict)