fix: Home Assistant: fix motor_state not exposed for SONOFF MINI-ZBRBS (#32702)

This commit is contained in:
AT0myks
2026-08-18 20:59:53 +02:00
committed by GitHub
parent 07ae13ad2d
commit be1cbb5f3b
+1 -1
View File
@@ -961,7 +961,7 @@ export class HomeAssistant extends Extension {
?.features.find((f) => f.name === "tilt");
const motorState = allExposes
?.filter(isEnumExpose)
.find((e) => ["motor_state", "moving"].includes(e.name) && e.access === ACCESS_STATE);
.find((e) => ["motor_state", "moving"].includes(e.name) && e.access & ACCESS_STATE);
const running = allExposes?.filter(isBinaryExpose)?.find((e) => e.name === "running");
const discoveryEntry: DiscoveryEntry = {