From e47322df9f9fd96e9702fab43ad9ccad8212a310 Mon Sep 17 00:00:00 2001 From: Rohan Kapoor Date: Sat, 21 Dec 2024 17:57:45 -0800 Subject: [PATCH] Expose the internal_temperature sensor with the correct device class --- lib/extension/homeassistant.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 63c085aefe..f73bdd1e45 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -244,6 +244,11 @@ const NUMERIC_DISCOVERY_LOOKUP: {[s: string]: KeyValue} = { illuminance_calibration: {entity_category: 'config', icon: 'mdi:wrench-clock'}, illuminance_lux: {device_class: 'illuminance', state_class: 'measurement'}, illuminance: {device_class: 'illuminance', enabled_by_default: false, state_class: 'measurement'}, + internal_temperature: { + device_class: 'temperature', + entity_category: 'diagnostic', + state_class: 'measurement', + }, linkquality: { enabled_by_default: false, entity_category: 'diagnostic',