mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Reduce battery drain on Nuki Lock (#5945)
This commit is contained in:
parent
2ffdf1fdcd
commit
6d7041cd42
@ -14,7 +14,7 @@ from homeassistant.util import Throttle
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
|
|
||||||
REQUIREMENTS = ['pynuki==1.2.1']
|
REQUIREMENTS = ['pynuki==1.2.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ class NukiLock(LockDevice):
|
|||||||
@Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
|
@Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Update the nuki lock properties."""
|
"""Update the nuki lock properties."""
|
||||||
self._nuki_lock.update()
|
self._nuki_lock.update(aggressive=False)
|
||||||
self._name = self._nuki_lock.name
|
self._name = self._nuki_lock.name
|
||||||
self._locked = self._nuki_lock.is_locked
|
self._locked = self._nuki_lock.is_locked
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ pynetgear==0.3.3
|
|||||||
pynetio==0.1.6
|
pynetio==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.lock.nuki
|
# homeassistant.components.lock.nuki
|
||||||
pynuki==1.2.1
|
pynuki==1.2.2
|
||||||
|
|
||||||
# homeassistant.components.sensor.nut
|
# homeassistant.components.sensor.nut
|
||||||
pynut2==2.1.2
|
pynut2==2.1.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user