From 62b559bf363dcdbddcae9681ed1edfc882870b2a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 10 Oct 2022 19:36:25 +0200 Subject: [PATCH] Adjust device classes in smartthings (#79283) --- homeassistant/components/smartthings/sensor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/smartthings/sensor.py b/homeassistant/components/smartthings/sensor.py index 64869347228..a51ee47f0dc 100644 --- a/homeassistant/components/smartthings/sensor.py +++ b/homeassistant/components/smartthings/sensor.py @@ -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, ),