Add device class moisture (#77666)
This commit is contained in:
parent
cd2045b66d
commit
db4391adff
7 changed files with 14 additions and 2 deletions
|
@ -42,6 +42,7 @@ CONF_FREQUENCY = "frequency"
|
|||
CONF_GAS = "gas"
|
||||
CONF_HUMIDITY = "humidity"
|
||||
CONF_ILLUMINANCE = "illuminance"
|
||||
CONF_MOISTURE = "moisture"
|
||||
CONF_NITROGEN_DIOXIDE = "nitrogen_dioxide"
|
||||
CONF_NITROGEN_MONOXIDE = "nitrogen_monoxide"
|
||||
CONF_NITROUS_OXIDE = "nitrous_oxide"
|
||||
|
@ -71,6 +72,7 @@ ENTITY_TRIGGERS = {
|
|||
SensorDeviceClass.GAS: [{CONF_TYPE: CONF_GAS}],
|
||||
SensorDeviceClass.HUMIDITY: [{CONF_TYPE: CONF_HUMIDITY}],
|
||||
SensorDeviceClass.ILLUMINANCE: [{CONF_TYPE: CONF_ILLUMINANCE}],
|
||||
SensorDeviceClass.MOISTURE: [{CONF_TYPE: CONF_MOISTURE}],
|
||||
SensorDeviceClass.NITROGEN_DIOXIDE: [{CONF_TYPE: CONF_NITROGEN_DIOXIDE}],
|
||||
SensorDeviceClass.NITROGEN_MONOXIDE: [{CONF_TYPE: CONF_NITROGEN_MONOXIDE}],
|
||||
SensorDeviceClass.NITROUS_OXIDE: [{CONF_TYPE: CONF_NITROUS_OXIDE}],
|
||||
|
@ -109,6 +111,7 @@ TRIGGER_SCHEMA = vol.All(
|
|||
CONF_GAS,
|
||||
CONF_HUMIDITY,
|
||||
CONF_ILLUMINANCE,
|
||||
CONF_MOISTURE,
|
||||
CONF_NITROGEN_DIOXIDE,
|
||||
CONF_NITROGEN_MONOXIDE,
|
||||
CONF_NITROUS_OXIDE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue