Skip to content

Commit 9862541

Browse files
authored
fix: Improve compatibility with _TZ3000_303avxxt DIN rail switch (#7965)
Signed-off-by: Ondrej Pecta <[email protected]>
1 parent 822f991 commit 9862541

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/devices/tuya.ts

+8-12
Original file line numberDiff line numberDiff line change
@@ -8381,19 +8381,15 @@ const definitions: DefinitionWithExtend[] = [
83818381
e.binary('temperature_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High temperature breaker'),
83828382
);
83838383
}
8384-
if (device?.manufacturerName !== '_TZ3000_303avxxt') {
8385-
exposes.push(
8386-
e
8387-
.numeric('power_threshold', ea.STATE_SET)
8388-
.withValueMin(1)
8389-
.withValueMax(26)
8390-
.withValueStep(1)
8391-
.withUnit('kW')
8392-
.withDescription('High power threshold'),
8393-
e.binary('power_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High power breaker'),
8394-
);
8395-
}
83968384
exposes.push(
8385+
e
8386+
.numeric('power_threshold', ea.STATE_SET)
8387+
.withValueMin(1)
8388+
.withValueMax(26)
8389+
.withValueStep(1)
8390+
.withUnit('kW')
8391+
.withDescription('High power threshold'),
8392+
e.binary('power_breaker', ea.STATE_SET, 'ON', 'OFF').withDescription('High power breaker'),
83978393
e
83988394
.numeric('over_current_threshold', ea.STATE_SET)
83998395
.withValueMin(1)

0 commit comments

Comments
 (0)