Reduce battery drain on Nuki Lock (#5945)

This commit is contained in:
Philipp Schmitt 2017-02-13 14:43:12 +01:00 committed by Fabian Affolter
parent 2ffdf1fdcd
commit 6d7041cd42
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pynuki==1.2.1']
REQUIREMENTS = ['pynuki==1.2.2']
_LOGGER = logging.getLogger(__name__)
@ -61,7 +61,7 @@ class NukiLock(LockDevice):
@Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
def update(self):
"""Update the nuki lock properties."""
self._nuki_lock.update()
self._nuki_lock.update(aggressive=False)
self._name = self._nuki_lock.name
self._locked = self._nuki_lock.is_locked

View File

@ -499,7 +499,7 @@ pynetgear==0.3.3
pynetio==0.1.6
# homeassistant.components.lock.nuki
pynuki==1.2.1
pynuki==1.2.2
# homeassistant.components.sensor.nut
pynut2==2.1.2