Add CO2 level reading for Kaiterra integration (#26935)

This commit is contained in:
Michał Mrozek 2019-09-27 17:42:32 +02:00 committed by Martin Hjelmare
parent 4d92e76f19
commit 588bc26661
2 changed files with 6 additions and 1 deletions

View file

@ -82,6 +82,11 @@ class KaiterraAirQuality(AirQualityEntity):
"""Return the particulate matter 10 level."""
return self._data("rpm10c")
@property
def carbon_dioxide(self):
"""Return the CO2 (carbon dioxide) level."""
return self._data("rco2")
@property
def volatile_organic_compounds(self):
"""Return the VOC (Volatile Organic Compounds) level."""

View file

@ -23,7 +23,7 @@ from .const import (
_LOGGER = getLogger(__name__)
POLLUTANTS = {"rpm25c": "PM2.5", "rpm10c": "PM10", "rtvoc": "TVOC"}
POLLUTANTS = {"rpm25c": "PM2.5", "rpm10c": "PM10", "rtvoc": "TVOC", "rco2": "CO2"}
class KaiterraApiData: