mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Added optional parameter to lock and unlock methods
This commit is contained in:
parent
bd3f0c101d
commit
b2366ce68e
@ -57,10 +57,10 @@ class WinkLockDevice(LockDevice):
|
||||
""" True if device is locked. """
|
||||
return self.wink.state()
|
||||
|
||||
def lock(self):
|
||||
def lock(self, **kwargs):
|
||||
""" Lock the device. """
|
||||
self.wink.set_state(True)
|
||||
|
||||
def unlock(self):
|
||||
def unlock(self, **kwargs):
|
||||
""" Unlock the device. """
|
||||
self.wink.set_state(False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user