Skip to content

Commit

Permalink
Small fix :)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzroe committed Feb 16, 2022
1 parent 921e8c1 commit d5e35b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions converters/DIYRuZ_Zintercom.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const tz = {
key: ['state', 'mode', 'sound', 'once', 'always', 'drop', 'time_ring', 'time_talk', 'time_open', 'time_bell', 'time_report'],
convertSet: async (entity, key, rawValue, meta) => {
const lookup = {
'OFF': 0x00,
'ON': 0x01,
'OFF': '0',
'ON': '1',
};
const modeOpenLookup = {
'Never': '0',
Expand Down Expand Up @@ -150,7 +150,7 @@ const tz = {

await entity.write('closuresDoorLock', payloads[key]);

if (key === 'once'||'always'||'drop'||'mode') {
if (key == 'once' || key == 'always' || key == 'drop' || key == 'mode') {
const payloads = {
mode: ['closuresDoorLock', 0x0051],
once: ['closuresDoorLock', 0x0051],
Expand Down

0 comments on commit d5e35b9

Please sign in to comment.