diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/home/api/types/types.py | 1 | ||||
-rw-r--r-- | src/home/database/sensors.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/home/api/types/types.py b/src/home/api/types/types.py index 4d8b4ff..1d5596f 100644 --- a/src/home/api/types/types.py +++ b/src/home/api/types/types.py @@ -13,6 +13,7 @@ class BotType(Enum): class TemperatureSensorLocation(Enum): BIG_HOUSE_1 = auto() BIG_HOUSE_2 = auto() + BIG_HOUSE_ROOM = auto() STREET = auto() DIANA = auto() SPB1 = auto() diff --git a/src/home/database/sensors.py b/src/home/database/sensors.py index ca53dd0..4cfaa08 100644 --- a/src/home/database/sensors.py +++ b/src/home/database/sensors.py @@ -18,6 +18,9 @@ def get_temperature_table(sensor: TemperatureSensorLocation) -> str: elif sensor == TemperatureSensorLocation.BIG_HOUSE_2: return 'temp_roof' + elif sensor == TemperatureSensorLocation.BIG_HOUSE_ROOM: + return 'temp_room' + elif sensor == TemperatureSensorLocation.SPB1: return 'temp_spb1' |