@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.
@@ -221,8 +221,13 @@ export interface EntityView {
221
221
  domain: EntityDomain;
222
222
  /** Current state value */
223
223
  state: string;
224
- /** Entity attributes */
225
- attributes: Record<string, any>;
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
@@ -1415,7 +1415,7 @@ const Xt = L.enum([
1415
1415
  function Qt() {
1416
1416
  return document.documentElement.classList.contains("dark");
1417
1417
  }
1418
- const Vt = "0.4.1", Pt = {
1418
+ const Vt = "0.4.2", Pt = {
1419
1419
  version: Vt
1420
1420
  }, Zt = Pt.version;
1421
1421
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/widget-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "SDK for building GlassHome dashboard widgets with SolidJS",
5
5
  "keywords": [
6
6
  "glasshome",