Skip to content

Commit

Permalink
Add batteryCharging for locks (#89)
Browse files Browse the repository at this point in the history
Co-authored-by: steffenrapp <[email protected]>
  • Loading branch information
pschmitt and steffenrapp authored Feb 24, 2024
1 parent 933dd96 commit db47e64
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 db47e64

Please sign in to comment.