Skip to content

Commit 1b89b6f

Browse files
committed
Reduce some eval
1 parent 635a97b commit 1b89b6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devices/eurotronic/eurotronic_spzb0001_trv.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"at": "0x4008",
8888
"cl": "0x0201",
8989
"ep": 1,
90-
"eval": "Item.val = ((Attr.val & 0x02) !== 0);",
90+
"eval": "Item.val = (Attr.val & 0x02) !== 0;",
9191
"fn": "zcl:attr",
9292
"mf": "0x1037"
9393
},
@@ -152,7 +152,7 @@
152152
"at": "0x4008",
153153
"cl": "0x0201",
154154
"ep": 1,
155-
"eval": "Item.val = ((Attr.val & 0x80) !== 0);",
155+
"eval": "Item.val = (Attr.val & 0x80) !== 0;",
156156
"fn": "zcl:attr",
157157
"mf": "0x1037"
158158
},
@@ -283,7 +283,7 @@
283283
"at": "0x4008",
284284
"cl": "0x0201",
285285
"ep": 1,
286-
"eval": "Item.val = (R.item('config/hostflags').val >> 3) & 0x01;",
286+
"eval": "Item.val = (Attr.val >> 3) & 0x01;",
287287
"fn": "zcl:attr",
288288
"mf": "0x1037"
289289
},

0 commit comments

Comments
 (0)