From c0934ce03c53eae744f3fabf155a8c96b954393c Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Fri, 22 Oct 2021 10:50:21 +0200 Subject: [PATCH] Fjaraskupan entity categories (#57846) --- homeassistant/components/fjaraskupan/sensor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/fjaraskupan/sensor.py b/homeassistant/components/fjaraskupan/sensor.py index 4252828c633..1821008a1d7 100644 --- a/homeassistant/components/fjaraskupan/sensor.py +++ b/homeassistant/components/fjaraskupan/sensor.py @@ -9,7 +9,10 @@ from homeassistant.components.sensor import ( SensorEntity, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import SIGNAL_STRENGTH_DECIBELS_MILLIWATT +from homeassistant.const import ( + ENTITY_CATEGORY_DIAGNOSTIC, + SIGNAL_STRENGTH_DECIBELS_MILLIWATT, +) from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import DeviceInfo, Entity from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -57,6 +60,7 @@ class RssiSensor(CoordinatorEntity[State], SensorEntity): self._attr_state_class = STATE_CLASS_MEASUREMENT self._attr_native_unit_of_measurement = SIGNAL_STRENGTH_DECIBELS_MILLIWATT self._attr_entity_registry_enabled_default = False + self._attr_entity_category = ENTITY_CATEGORY_DIAGNOSTIC @property def native_value(self) -> StateType: