@riddix/hamh 2.1.0-alpha.490 → 2.1.0-alpha.492
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/backend/cli.js
CHANGED
|
@@ -149284,6 +149284,9 @@ function testMatchers(matchers, device, entity, mode = "any", entityState, label
|
|
|
149284
149284
|
);
|
|
149285
149285
|
}
|
|
149286
149286
|
function testMatcher(matcher, device, entity, entityState, labels) {
|
|
149287
|
+
if (matcher.value == null) {
|
|
149288
|
+
return false;
|
|
149289
|
+
}
|
|
149287
149290
|
switch (matcher.type) {
|
|
149288
149291
|
case "domain":
|
|
149289
149292
|
return entity.entity_id.split(".")[0] === matcher.value;
|
|
@@ -152318,7 +152321,7 @@ var HomeAssistantRegistry = class extends Service {
|
|
|
152318
152321
|
const hash2 = createHash("md5");
|
|
152319
152322
|
for (const e of entityRegistry) {
|
|
152320
152323
|
hash2.update(
|
|
152321
|
-
`${e.entity_id}\0${e.device_id ?? ""}\0${e.disabled_by ?? ""}\0${e.hidden_by ?? ""}
|
|
152324
|
+
`${e.entity_id}\0${e.device_id ?? ""}\0${e.disabled_by ?? ""}\0${e.hidden_by ?? ""}\0${e.area_id ?? ""}\0${(e.labels ?? []).join(",")}
|
|
152322
152325
|
`
|
|
152323
152326
|
);
|
|
152324
152327
|
}
|