mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add CO2 level reading for Kaiterra integration (#26935)
This commit is contained in:
parent
4d92e76f19
commit
588bc26661
@ -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."""
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user