From 5fd086cfa015b305e32774dc1e42f5f75f4a3e8c Mon Sep 17 00:00:00 2001 From: ollo69 Date: Sun, 20 Oct 2024 19:28:47 +0000 Subject: [PATCH] Set diagnostic category for SSID sensor --- custom_components/smartthinq_sensors/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/smartthinq_sensors/sensor.py b/custom_components/smartthinq_sensors/sensor.py index 4dd8351c..c51b7d5e 100644 --- a/custom_components/smartthinq_sensors/sensor.py +++ b/custom_components/smartthinq_sensors/sensor.py @@ -20,6 +20,7 @@ CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, PERCENTAGE, STATE_UNAVAILABLE, + EntityCategory, UnitOfPower, UnitOfTime, ) @@ -553,6 +554,7 @@ class ThinQSensorEntityDescription(SensorEntityDescription): key="ssid", name="SSID", icon="mdi:access-point-network", + entity_category=EntityCategory.DIAGNOSTIC, value_fn=lambda x: x.ssid, ), )