mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-15 18:08:32 -07:00
Don't publish of msg is empty after filtering (#8448)
This commit is contained in:
parent
cb47efe3fe
commit
c7bf3324dc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user