chore: remove duplicate object_id warning for function expose

This commit is contained in:
koenkk
2023-08-26 08:43:47 +02:00
parent 514d9f38b2
commit 677db105e2
+2 -4
View File
@@ -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 {