From 677db105e2d6bd473c6fa01d77e5f18874bce02c Mon Sep 17 00:00:00 2001 From: koenkk Date: Sat, 26 Aug 2023 08:43:47 +0200 Subject: [PATCH] chore: remove duplicate object_id warning for function expose --- test/homeassistant.test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/homeassistant.test.js b/test/homeassistant.test.js index 1b151d27..b18440af 100644 --- a/test/homeassistant.test.js +++ b/test/homeassistant.test.js @@ -60,10 +60,8 @@ describe('HomeAssistant extension', () => { configs.forEach((c) => { const id = c['type'] + '/' + c['object_id']; if (cfg_type_object_ids.includes(id)) { - if (typeof d.exposes == 'function') { - // A dynamic function must exposes all possible attributes for the docs - console.warn(`${d.model} dynamic exposes contains duplicated ${id}`) - } else { + // A dynamic function must exposes all possible attributes for the docs + if (typeof d.exposes != 'function') { duplicated.push(d.model); } } else {