mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
Don't mutate stateCache. #82
This commit is contained in:
parent
898081fcb4
commit
ab64d079aa
@ -389,7 +389,7 @@ class Controller {
|
||||
if (cacheState) {
|
||||
// Add cached state to payload
|
||||
if (this.stateCache[deviceID]) {
|
||||
payload = objectAssignDeep(this.stateCache[deviceID], payload);
|
||||
payload = objectAssignDeep.noMutate(this.stateCache[deviceID], payload);
|
||||
}
|
||||
|
||||
// Update state cache with new state.
|
||||
|
Loading…
Reference in New Issue
Block a user