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, ),