mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-09-17 02:04:21 +00:00
Stop caching forgotten and keyerror properties (#667)
* feat(device_receive): stop caching `forgotten` and `keyerror` properties After this change, the `forgotten` and `keyerror` properties as emitted by the Xiaomi Vima Smart Lock will stop being cached. Previously they were mostly useless, because after they were set to `true`, they were never being unset or set back to `false` upon a successful unlock. Close #666 * chore(device_receive): order uncached properties lexicographically As the list of uncached properties grows over time, it could be useful to order them lexicographically. This will make life easier to any developer looking for a particular property in the list, and in overall makes things look tidier.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const settings = require('../util/settings');
|
||||
const logger = require('../util/logger');
|
||||
|
||||
const dontCacheProperties = ['click', 'action', 'button', 'button_left', 'button_right'];
|
||||
const dontCacheProperties = ['action', 'button', 'button_left', 'button_right', 'click', 'forgotten', 'keyerror'];
|
||||
|
||||
/**
|
||||
* This extensions handles messages received from devices.
|
||||
|
||||
Reference in New Issue
Block a user