mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Don't publish of msg is empty after filtering (#8448)
This commit is contained in:
@@ -243,8 +243,9 @@ class EntityPublish extends Extension {
|
||||
if (options.hasOwnProperty('filtered_optimistic')) {
|
||||
options.filtered_optimistic.forEach((a) => delete msg[a]);
|
||||
}
|
||||
|
||||
addToToPublish(resolvedEntity.settings.ID, msg);
|
||||
if (Object.keys(msg).length != 0) {
|
||||
addToToPublish(resolvedEntity.settings.ID, msg);
|
||||
}
|
||||
}
|
||||
|
||||
if (result && result.membersState && optimistic) {
|
||||
|
||||
Reference in New Issue
Block a user