Skip to content

Commit

Permalink
fix(ignore): Fix 012f2d1
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 8, 2023
1 parent 012f2d1 commit 38e1ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const definitions: Definition[] = [
description: 'Home base',
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
exposes: (device, options) => {
if (!device) return [e.light_brightness_colortemp_colorxy([153, 454])];
return device.endpoints.filter((ep) => ep.ID !== 242).map((ep) => {
if (!device) return [e.light_brightness_colortemp_colorxy([153, 454]), e.linkquality()];
return [e.linkquality(), ...device.endpoints.filter((ep) => ep.ID !== 242).map((ep) => {
return e.light_brightness_colortemp_colorxy([153, 454]).withEndpoint(`l${ep.ID}`);
});
})];
},
meta: {multiEndpoint: true},
endpoint: (device) => {
Expand Down

0 comments on commit 38e1ae3

Please sign in to comment.