From 2ce837f588e9211083948ca243d93b9289c3e8ce Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Fri, 30 Sep 2022 21:49:59 +0200 Subject: [PATCH] Resolve late comments to deCONZ sensor (#79380) Resolve late comments to deCONZ sensor #79137 --- homeassistant/components/deconz/sensor.py | 3 --- tests/components/deconz/test_sensor.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/homeassistant/components/deconz/sensor.py b/homeassistant/components/deconz/sensor.py index 90e19aee11d..66c186e20d7 100644 --- a/homeassistant/components/deconz/sensor.py +++ b/homeassistant/components/deconz/sensor.py @@ -33,7 +33,6 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_TEMPERATURE, ATTR_VOLTAGE, - CONCENTRATION_PARTS_PER_BILLION, ENERGY_KILO_WATT_HOUR, LIGHT_LUX, PERCENTAGE, @@ -120,7 +119,6 @@ ENTITY_DESCRIPTIONS: tuple[DeconzSensorDescription, ...] = ( old_unique_id_suffix="ppb", device_class=SensorDeviceClass.AQI, state_class=SensorStateClass.MEASUREMENT, - native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION, ), DeconzSensorDescription[Consumption]( key="consumption", @@ -196,7 +194,6 @@ ENTITY_DESCRIPTIONS: tuple[DeconzSensorDescription, ...] = ( value_fn=lambda device: dt_util.parse_datetime(device.last_set), instance_check=Time, device_class=SensorDeviceClass.TIMESTAMP, - state_class=SensorStateClass.TOTAL_INCREASING, ), DeconzSensorDescription[SensorResources]( key="battery", diff --git a/tests/components/deconz/test_sensor.py b/tests/components/deconz/test_sensor.py index 1078d888c0e..ac8100caa3d 100644 --- a/tests/components/deconz/test_sensor.py +++ b/tests/components/deconz/test_sensor.py @@ -104,7 +104,6 @@ TEST_DATA = [ "state_class": SensorStateClass.MEASUREMENT, "attributes": { "state_class": "measurement", - "unit_of_measurement": "ppb", "device_class": "aqi", "friendly_name": "BOSCH Air quality sensor PPB", }, @@ -521,9 +520,7 @@ TEST_DATA = [ "state": "2020-11-19T08:07:08+00:00", "entity_category": None, "device_class": SensorDeviceClass.TIMESTAMP, - "state_class": SensorStateClass.TOTAL_INCREASING, "attributes": { - "state_class": "total_increasing", "device_class": "timestamp", "friendly_name": "eTRV Séjour", },