Skip to content

Commit

Permalink
fix missing removal of lowbat listener (close #54)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Oct 18, 2018
1 parent 2f08bda commit f510a97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homematic-devices/hm-sec-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module.exports = class HmSecKey {
homematic.on('close', () => {
homematic.debug('removing listeners ' + config.name);
ccu.unsubscribe(idSubscription);
acc.getService(subtypeLock).getCharacteristic(hap.Characteristic.LockCurrentState).removeListener('get', getListenerLowbat);
acc.getService(subtypeLock).getCharacteristic(hap.Characteristic.LockCurrentState).removeListener('get', getListenerCurrent);
acc.getService(subtypeLock).getCharacteristic(hap.Characteristic.LockTargetState).removeListener('get', getListener);
acc.getService(subtypeLock).getCharacteristic(hap.Characteristic.LockTargetState).removeListener('set', setListener);
Expand Down

0 comments on commit f510a97

Please sign in to comment.