Skip to content

Commit

Permalink
Merge pull request #170 from mxr/update-auto-lock-timeout
Browse files Browse the repository at this point in the history
Update `set_auto_lock_time` docstring
dknowles2 authored Aug 12, 2024
2 parents b989968 + 8d9c0d7 commit d6b96b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyschlage/lock.py
Original file line number Diff line number Diff line change
@@ -382,7 +382,8 @@ def set_lock_and_leave(self, enabled: bool):
self._put_attributes({"lockAndLeaveEnabled": 1 if enabled else 0})

def set_auto_lock_time(self, auto_lock_time: int):
"""Sets the auto_lock_time setting."""
"""Sets the auto_lock_time setting. Setting it to `0` turns off the
auto-lock feature."""
if auto_lock_time not in (0, 15, 30, 60, 120, 240, 300):
raise ValueError(
"auto_lock_time must be one of: (0, 15, 30, 60, 120, 240, 300)"

0 comments on commit d6b96b8

Please sign in to comment.