From 36f55928f91e6a0925d54d2b6b15bef80d7bda92 Mon Sep 17 00:00:00 2001 From: mattbyte <22878598+mattbyte@users.noreply.github.com> Date: Thu, 5 Dec 2024 03:50:34 +0800 Subject: [PATCH] fix: Fix bug in tuyaModernExtend (#8435) --- src/lib/tuya.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tuya.ts b/src/lib/tuya.ts index c86a5f3c0003b..9768cab662cc3 100644 --- a/src/lib/tuya.ts +++ b/src/lib/tuya.ts @@ -1808,7 +1808,7 @@ export function getHandlersForDP( : [ { key: [name], - endpoints: [endpoint], + endpoints: endpoint ? [endpoint] : undefined, convertSet: async (entity, key, value, meta) => { // A set converter is only called once; therefore we need to loop const state: KeyValue = {};