Skip to content

Commit

Permalink
Revert "Fix Lumi Button states"
Browse files Browse the repository at this point in the history
This reverts commit 6dfa0bf.
  • Loading branch information
asgothian committed Dec 29, 2024
1 parent 9d77c9b commit 25d89b0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/states.js
Original file line number Diff line number Diff line change
Expand Up @@ -4937,7 +4937,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'left' || payload.action === 'single_left') ? true : undefined,
getter: payload => (payload.action === 'left') ? true : undefined,
},
lumi_right_click: {
id: 'right_click',
Expand All @@ -4949,7 +4949,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'right' || payload.action === 'single_right') ? true : undefined,
getter: payload => (payload.action === 'right') ? true : undefined,
},
lumi_both_click: {
id: 'both_click',
Expand All @@ -4961,7 +4961,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'both' || payload.action === 'single_both') ? true : undefined,
getter: payload => (payload.action === 'both') ? true : undefined,
},
lumi_left_click_long: {
id: 'left_click_long',
Expand All @@ -4973,7 +4973,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'left_long' || payload.action === 'hold_left') ? true : undefined,
getter: payload => (payload.action === 'left_long') ? true : undefined,
},
lumi_right_click_long: {
id: 'right_click_long',
Expand All @@ -4985,7 +4985,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'right_long' || payload.action === 'hold_right') ? true : undefined,
getter: payload => (payload.action === 'right_long') ? true : undefined,
},
lumi_left_click_double: {
id: 'left_click_double',
Expand All @@ -4997,7 +4997,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'left_double' || payload.action === 'double_left') ? true : undefined,
getter: payload => (payload.action === 'left_double') ? true : undefined,
},
lumi_right_click_double: {
id: 'right_click_double',
Expand All @@ -5009,7 +5009,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'right_double' || payload.action === 'double_right') ? true : undefined,
getter: payload => (payload.action === 'right_double') ? true : undefined,
},
lumi_both_click_long: {
id: 'both_click_long',
Expand All @@ -5021,7 +5021,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'both_long' || payload.action === 'hold_both') ? true : undefined,
getter: payload => (payload.action === 'both_long') ? true : undefined,
},
lumi_both_click_double: {
id: 'both_click_double',
Expand All @@ -5033,7 +5033,7 @@ const states = {
read: true,
type: 'boolean',
isEvent: true,
getter: payload => (payload.action === 'both_double' || payload.action === 'double_both') ? true : undefined,
getter: payload => (payload.action === 'both_double') ? true : undefined,
},
plug_summdelivered: {
id: 'energy',
Expand Down

0 comments on commit 25d89b0

Please sign in to comment.