Skip to content

Commit

Permalink
Fix in the ptvo.switch exposes. (#2465)
Browse files Browse the repository at this point in the history
* Fix in the ptvo.switch exposes.

* Fix #2

Co-authored-by: ptvoinfo <xagga@ya.ru>
  • Loading branch information
ptvoinfo and ptvoinfo authored Apr 9, 2021
1 parent 6128daa commit 77b814b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -4635,7 +4635,7 @@ const devices = [
fromZigbee: [fz.on_off, fz.ptvo_multistate_action, fz.legacy.ptvo_switch_buttons, fz.ptvo_switch_uart,
fz.ptvo_switch_analog_input, fz.brightness, fz.ignore_basic_report],
toZigbee: [tz.ptvo_switch_trigger, tz.ptvo_switch_uart, tz.ptvo_switch_analog_input, tz.ptvo_switch_light_brightness, tz.on_off],
exposes: [e.action(['single', 'double', 'tripple', 'hold']).withAccess(ea.STATE_SET)].concat(((enpoinsCount) => {
exposes: [exposes.text('action').withAccess(ea.STATE_SET)].concat(((enpoinsCount) => {
const features = [];
for (let i = 1; i <= enpoinsCount; i++) {
const epName = `l${i}`;
Expand Down

0 comments on commit 77b814b

Please sign in to comment.