Skip to content

Commit

Permalink
fix: Fix Failed to configure TypeError: func is not a function Koen…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed May 19, 2024
1 parent 7e347fa commit 4f0a38c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,6 @@ const definitions: Definition[] = [
tuya.whitelabel('Lidl', 'HG08008', 'Livarno Home LED ceiling light', ['_TZ3210_p9ao60da']),
tuya.whitelabel('Lidl', 'HG08007', 'Livarno Home outdoor LED band', ['_TZ3210_zbabx9wh']),
tuya.whitelabel('Lidl', '399629_2110', 'Livarno Lux Ceiling Panel RGB+CCT', ['_TZ3210_c0s1xloa', '_TZ3210_x13bu7za']),
tuya.whitelabel('TuYa', 'TS0505B_1_3', 'Zigbee 10W Downlight RGB CCW', ['_TZ3210_it1u8ahz']),
tuya.whitelabel('Nous', 'P3Z', 'Smart light bulb', ['_TZ3210_cieijuw1']),
tuya.whitelabel('Moes', 'ZLD-RCW_1', 'RGB+CCT Zigbee LED controller', ['_TZ3000_7hcgjxpc']),
tuya.whitelabel('Moes', 'ZB-TD5-RCW-GU10', 'RGB+CCT 4.7W GU10 LED bulb', ['_TZ3210_rcggc0ys']),
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ function processExtensions(definition: Definition): Definition {
if (ext.fromZigbee) fromZigbee.push(...ext.fromZigbee);
if (ext.exposes) addToAllExposes(ext.exposes);
if (ext.meta) meta = {...ext.meta, ...meta};
if (ext.configure) configures.push(...ext.configure);
// Filter `undefined` configures, e.g. returned by setupConfigureForReporting.
if (ext.configure) configures.push(...ext.configure.filter((c) => c));
if (ext.onEvent) onEvents.push(ext.onEvent);
if (ext.ota) {
if (ota && ext.ota !== ota) {
Expand Down

0 comments on commit 4f0a38c

Please sign in to comment.