From 9b693f7f2b652a376121e2d8289d017d138040d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hjelseth=20H=C3=B8yer?= Date: Sun, 17 Oct 2021 19:30:13 +0200 Subject: [PATCH] Airthings entity category diagnostic (#57850) --- homeassistant/components/airthings/sensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/airthings/sensor.py b/homeassistant/components/airthings/sensor.py index 4aab2307d9a..cc54430c417 100644 --- a/homeassistant/components/airthings/sensor.py +++ b/homeassistant/components/airthings/sensor.py @@ -22,6 +22,7 @@ from homeassistant.const import ( DEVICE_CLASS_PRESSURE, DEVICE_CLASS_SIGNAL_STRENGTH, DEVICE_CLASS_TEMPERATURE, + ENTITY_CATEGORY_DIAGNOSTIC, PERCENTAGE, PRESSURE_MBAR, SIGNAL_STRENGTH_DECIBELS, @@ -64,6 +65,7 @@ SENSORS: dict[str, SensorEntityDescription] = { key="battery", device_class=DEVICE_CLASS_BATTERY, native_unit_of_measurement=PERCENTAGE, + entity_category=ENTITY_CATEGORY_DIAGNOSTIC, name="Battery", ), "co2": SensorEntityDescription( @@ -96,6 +98,7 @@ SENSORS: dict[str, SensorEntityDescription] = { device_class=DEVICE_CLASS_SIGNAL_STRENGTH, name="RSSI", entity_registry_enabled_default=False, + entity_category=ENTITY_CATEGORY_DIAGNOSTIC, ), "pm1": SensorEntityDescription( key="pm1",