@glasshome/widget-sdk 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/framework/types.d.ts +7 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -221,8 +221,13 @@ export interface EntityView {
|
|
|
221
221
|
domain: EntityDomain;
|
|
222
222
|
/** Current state value */
|
|
223
223
|
state: string;
|
|
224
|
-
/**
|
|
225
|
-
|
|
224
|
+
/**
|
|
225
|
+
* Entity attributes from Home Assistant, excluding keys that are
|
|
226
|
+
* surfaced as canonical resolved fields elsewhere on EntityView
|
|
227
|
+
* (`deviceClass`, `unitOfMeasurement`, `friendlyName`, `icon`).
|
|
228
|
+
* Use those fields instead of reaching into `attributes`.
|
|
229
|
+
*/
|
|
230
|
+
attributes: Omit<Record<string, any>, "device_class" | "unit_of_measurement" | "friendly_name" | "icon">;
|
|
226
231
|
/** When the state last changed */
|
|
227
232
|
lastChanged: Date;
|
|
228
233
|
/** When the state was last updated (even if unchanged) */
|
package/dist/index.js
CHANGED