mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-03 19:38:30 +02:00
Add support for the SM300D2 7-in-1 sensor module (#1524)
* Added support for SM300D2 sensor module * Fixed lint errors due to added tvoc config * add device class Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
from esphome.components import i2c, sensor
|
||||
from esphome.const import CONF_ID, DEVICE_CLASS_EMPTY, ICON_RADIATOR, UNIT_PARTS_PER_MILLION, \
|
||||
UNIT_PARTS_PER_BILLION, ICON_MOLECULE_CO2
|
||||
UNIT_PARTS_PER_BILLION, ICON_MOLECULE_CO2, CONF_TVOC
|
||||
|
||||
DEPENDENCIES = ['i2c']
|
||||
|
||||
@@ -10,7 +10,6 @@ sgp30_ns = cg.esphome_ns.namespace('sgp30')
|
||||
SGP30Component = sgp30_ns.class_('SGP30Component', cg.PollingComponent, i2c.I2CDevice)
|
||||
|
||||
CONF_ECO2 = 'eco2'
|
||||
CONF_TVOC = 'tvoc'
|
||||
CONF_BASELINE = 'baseline'
|
||||
CONF_ECO2_BASELINE = 'eco2_baseline'
|
||||
CONF_TVOC_BASELINE = 'tvoc_baseline'
|
||||
|
||||
Reference in New Issue
Block a user