Added optional parameter to lock and unlock methods

This commit is contained in:
William Scanlon 2016-02-17 05:50:36 -05:00
parent bd3f0c101d
commit b2366ce68e

View File

@ -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)