Add new irradiance device class (#83452)

This commit is contained in:
epenet 2022-12-08 18:44:23 +01:00 committed by GitHub
parent 90438edc17
commit c4326ed1ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 0 deletions

View file

@ -43,6 +43,7 @@ CONF_FREQUENCY = "frequency"
CONF_GAS = "gas"
CONF_HUMIDITY = "humidity"
CONF_ILLUMINANCE = "illuminance"
CONF_IRRADIANCE = "irradiance"
CONF_MOISTURE = "moisture"
CONF_NITROGEN_DIOXIDE = "nitrogen_dioxide"
CONF_NITROGEN_MONOXIDE = "nitrogen_monoxide"
@ -83,6 +84,7 @@ ENTITY_TRIGGERS = {
SensorDeviceClass.GAS: [{CONF_TYPE: CONF_GAS}],
SensorDeviceClass.HUMIDITY: [{CONF_TYPE: CONF_HUMIDITY}],
SensorDeviceClass.ILLUMINANCE: [{CONF_TYPE: CONF_ILLUMINANCE}],
SensorDeviceClass.IRRADIANCE: [{CONF_TYPE: CONF_IRRADIANCE}],
SensorDeviceClass.MOISTURE: [{CONF_TYPE: CONF_MOISTURE}],
SensorDeviceClass.NITROGEN_DIOXIDE: [{CONF_TYPE: CONF_NITROGEN_DIOXIDE}],
SensorDeviceClass.NITROGEN_MONOXIDE: [{CONF_TYPE: CONF_NITROGEN_MONOXIDE}],
@ -134,6 +136,7 @@ TRIGGER_SCHEMA = vol.All(
CONF_GAS,
CONF_HUMIDITY,
CONF_ILLUMINANCE,
CONF_IRRADIANCE,
CONF_MOISTURE,
CONF_NITROGEN_DIOXIDE,
CONF_NITROGEN_MONOXIDE,