mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-03 02:21:38 +00:00
chore: remove duplicate object_id warning for function expose
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user