mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix issue with nuki new available state (#25881)
This commit is contained in:
parent
f03538f866
commit
38412fd880
@ -144,10 +144,12 @@ class NukiLock(LockDevice):
|
|||||||
self._nuki_lock.update(aggressive=False)
|
self._nuki_lock.update(aggressive=False)
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException:
|
||||||
self._available = False
|
self._available = False
|
||||||
else:
|
return
|
||||||
self._name = self._nuki_lock.name
|
|
||||||
self._locked = self._nuki_lock.is_locked
|
self._available = self._nuki_lock.state != 255
|
||||||
self._battery_critical = self._nuki_lock.battery_critical
|
self._name = self._nuki_lock.name
|
||||||
|
self._locked = self._nuki_lock.is_locked
|
||||||
|
self._battery_critical = self._nuki_lock.battery_critical
|
||||||
|
|
||||||
def lock(self, **kwargs):
|
def lock(self, **kwargs):
|
||||||
"""Lock the device."""
|
"""Lock the device."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user