mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-23 02:59:53 +00:00
Don't mutate stateCache. #82
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user