add additional weather sensor (IAQ accuracy)

This commit is contained in:
Kim Bauters 2021-05-24 13:41:20 +01:00
parent 3b554b5660
commit 88aa843691

View File

@ -48,6 +48,7 @@ class WeatherSensor(Flag):
RAIN_PROBABILITY = auto() RAIN_PROBABILITY = auto()
SOLAR_RADIATION = auto() SOLAR_RADIATION = auto()
IAQ = auto() IAQ = auto()
IAQ_ACCURACY = auto()
VOC = auto() VOC = auto()
CO2 = auto() CO2 = auto()
@ -329,6 +330,8 @@ class Publisher:
keys.append("solar_radiation") keys.append("solar_radiation")
if WeatherSensor.IAQ in version: if WeatherSensor.IAQ in version:
keys.append("iaq") keys.append("iaq")
if WeatherSensor.IAQ_ACCURACY in version:
keys.append("iaq_acc")
if WeatherSensor.VOC in version: if WeatherSensor.VOC in version:
keys.append("voc") keys.append("voc")
if WeatherSensor.CO2 in version: if WeatherSensor.CO2 in version: