@riddix/hamh 2.1.0-alpha.500 → 2.1.0-alpha.502

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.
@@ -152322,14 +152322,20 @@ var HomeAssistantRegistry = class extends Service {
152322
152322
  const hash2 = createHash("md5");
152323
152323
  for (const e of entityRegistry) {
152324
152324
  hash2.update(
152325
- `${e.entity_id}\0${e.device_id ?? ""}\0${e.disabled_by ?? ""}\0${e.hidden_by ?? ""}\0${e.area_id ?? ""}\0${(e.labels ?? []).join(",")}
152325
+ `${e.entity_id}\0${e.device_id ?? ""}\0${e.disabled_by ?? ""}\0${e.hidden_by ?? ""}\0${e.area_id ?? ""}\0${(e.labels ?? []).join(",")}\0${e.platform ?? ""}\0${e.entity_category ?? ""}
152326
152326
  `
152327
152327
  );
152328
152328
  }
152329
- for (const s of statesList) hash2.update(`${s.entity_id}
152330
- `);
152331
- for (const d of deviceRegistry) hash2.update(`${d.id}
152329
+ for (const s of statesList) {
152330
+ hash2.update(`${s.entity_id}\0${s.attributes?.device_class ?? ""}
152332
152331
  `);
152332
+ }
152333
+ for (const d of deviceRegistry) {
152334
+ hash2.update(
152335
+ `${d.id}\0${(d.labels ?? []).join(",")}\0${d.area_id ?? ""}\0${d.name_by_user ?? ""}\0${d.name ?? ""}\0${d.model ?? ""}
152336
+ `
152337
+ );
152338
+ }
152333
152339
  for (const l of labels) hash2.update(`${l.label_id}
152334
152340
  `);
152335
152341
  for (const a of areas) hash2.update(`${a.area_id}\0${a.name}