mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-18 09:38:54 +00:00
Fix crash when there is no state yet.
This commit is contained in:
@@ -72,7 +72,7 @@ class Groups {
|
||||
const payload = {};
|
||||
|
||||
properties.forEach((prop) => {
|
||||
if (to.hasOwnProperty(prop) && from[prop] != to[prop]) {
|
||||
if (to.hasOwnProperty(prop) && (!from || from[prop] != to[prop])) {
|
||||
payload[prop] = to[prop];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user