Adjust device classes in smartthings (#79283)

This commit is contained in:
epenet 2022-10-10 19:36:25 +02:00 committed by GitHub
parent 06b1a4c2b4
commit 62b559bf36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ CAPABILITY_TO_SENSORS: dict[str, list[Map]] = {
Attribute.body_weight_measurement,
"Body Weight",
MASS_KILOGRAMS,
None,
SensorDeviceClass.WEIGHT,
SensorStateClass.MEASUREMENT,
None,
)
@ -209,7 +209,7 @@ CAPABILITY_TO_SENSORS: dict[str, list[Map]] = {
Attribute.equivalent_carbon_dioxide_measurement,
"Equivalent Carbon Dioxide Measurement",
CONCENTRATION_PARTS_PER_MILLION,
None,
SensorDeviceClass.CO2,
SensorStateClass.MEASUREMENT,
None,
)
@ -229,7 +229,7 @@ CAPABILITY_TO_SENSORS: dict[str, list[Map]] = {
Attribute.gas_meter,
"Gas Meter",
ENERGY_KILO_WATT_HOUR,
None,
SensorDeviceClass.ENERGY,
SensorStateClass.MEASUREMENT,
None,
),
@ -248,7 +248,7 @@ CAPABILITY_TO_SENSORS: dict[str, list[Map]] = {
Attribute.gas_meter_volume,
"Gas Meter Volume",
VOLUME_CUBIC_METERS,
None,
SensorDeviceClass.VOLUME,
SensorStateClass.MEASUREMENT,
None,
),