Add entity_category_diagnostics to SGP30 baseline sensors (#3272)

This commit is contained in:
JasperPlant 2022-03-08 03:21:13 +01:00 committed by GitHub
parent 3b8ca80900
commit 4c22a98b0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ from esphome.const import (
UNIT_PARTS_PER_MILLION,
UNIT_PARTS_PER_BILLION,
ICON_MOLECULE_CO2,
ENTITY_CATEGORY_DIAGNOSTIC,
)
DEPENDENCIES = ["i2c"]
@ -49,10 +50,12 @@ CONFIG_SCHEMA = (
cv.Optional(CONF_ECO2_BASELINE): sensor.sensor_schema(
icon=ICON_MOLECULE_CO2,
accuracy_decimals=0,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),
cv.Optional(CONF_TVOC_BASELINE): sensor.sensor_schema(
icon=ICON_RADIATOR,
accuracy_decimals=0,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),
cv.Optional(CONF_STORE_BASELINE, default=True): cv.boolean,
cv.Optional(CONF_BASELINE): cv.Schema(