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 = {};