From e32afa0f707ef332dab6477a214aea7f1cb2618a Mon Sep 17 00:00:00 2001 From: Darius Date: Sun, 8 Feb 2026 14:48:44 +0100 Subject: [PATCH] fix ha update --- src/homeassistant.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/homeassistant.ts b/src/homeassistant.ts index 34f84ec..c151466 100644 --- a/src/homeassistant.ts +++ b/src/homeassistant.ts @@ -35,6 +35,12 @@ export type API_HA_DeskPosition = { export type HA_Update = { entity_id: string; state: string; - attributes: unknown; + attributes: { + state_class?: string; + unit_of_measurement?: string; + icon?: string; + friendly_name?: string; + [key: string]: unknown; + }; timestamp: string; // datetime string -} +};