Skip to content

Commit

Permalink
Add batteryCharging for locks
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenrapp authored and pschmitt committed Feb 24, 2024
1 parent 933dd96 commit 8721b93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ dmypy.json

# End of https://www.gitignore.io/api/python

poetry.lock
4 changes: 4 additions & 0 deletions pynuki/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def door_sensor_state(self):
def door_sensor_state_name(self):
return self._json.get("doorsensorStateName")

@property
def battery_charging(self):
return self._json.get("batteryCharging")

@property
def battery_charge(self):
return self._json.get("batteryChargeState")
Expand Down

0 comments on commit 8721b93

Please sign in to comment.