From 5d059b7bcb7f710df93e34b2bb56a1e880757c05 Mon Sep 17 00:00:00 2001 From: Rohan Kapoor Date: Sun, 22 Dec 2024 14:15:34 -0500 Subject: [PATCH] fix: Home Assistant: expose the internal_temperature sensor with the correct device class (#25289) --- lib/extension/homeassistant.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 19df2bfef5..8e98e7d4a2 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -180,6 +180,11 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = { humidity_min: {entity_category: 'config', icon: 'mdi:water-percent'}, illuminance_calibration: {entity_category: 'config', icon: 'mdi:wrench-clock'}, illuminance: {device_class: 'illuminance', state_class: 'measurement'}, + internal_temperature: { + device_class: 'temperature', + entity_category: 'diagnostic', + state_class: 'measurement', + }, linkquality: { enabled_by_default: false, entity_category: 'diagnostic',