From 6d8f4de504a675452d6158a64f4a0a283de1a832 Mon Sep 17 00:00:00 2001 From: callemand Date: Mon, 25 Sep 2023 09:13:05 +0200 Subject: [PATCH] fix test --- .../tuya/lib/tuya.discoverDevices.test.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/server/test/services/tuya/lib/tuya.discoverDevices.test.js b/server/test/services/tuya/lib/tuya.discoverDevices.test.js index 4998f9c486..7c537b429d 100644 --- a/server/test/services/tuya/lib/tuya.discoverDevices.test.js +++ b/server/test/services/tuya/lib/tuya.discoverDevices.test.js @@ -43,6 +43,13 @@ describe('TuyaHandler.discoverDevices', () => { type: 'Boolean', }, ], + status: [ + { + name: 'cur_power', + code: 'cur_power', + type: 'Integer', + }, + ], }, }), }; @@ -96,6 +103,18 @@ describe('TuyaHandler.discoverDevices', () => { { external_id: 'tuya:uuid', features: [ + { + category: 'switch', + external_id: 'tuya:uuid:cur_power', + has_feedback: false, + max: 1, + min: 0, + name: 'cur_power', + read_only: true, + selector: 'tuya:uuid:cur_power', + type: 'power', + unit: 'watt', + }, { category: 'switch', external_id: 'tuya:uuid:switch_1',