Skip to content

Commit

Permalink
Merge pull request #76 from dknowles2/wifi
Browse files Browse the repository at this point in the history
Classify Encode Lever locks as WiFi locks
  • Loading branch information
dknowles2 authored Jul 27, 2023
2 parents a9e8464 + b463bdb commit 5ad3a1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyschlage/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ def from_json(cls, auth, json):
)

def _is_wifi_lock(self) -> bool:
return self.device_type.startswith("be489") or self.device_type.startswith(
"be499"
)
for prefix in ("be489", "be499", "fe789"):
if self.device_type.startswith(prefix):
return True
return False

def refresh(self):
"""Refreshes the Lock state.
Expand Down

0 comments on commit 5ad3a1b

Please sign in to comment.