Skip to content

Commit

Permalink
Fix battery entry in device
Browse files Browse the repository at this point in the history
Enforce use of enum value.

Fixes pwr-Solaar#2700
Related pwr-Solaar#2273
  • Loading branch information
MattHag committed Dec 15, 2024
1 parent b6f5f86 commit 0da8fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logitech_receiver/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def battery(self): # None or level, next, status, voltage
try:
feature, battery = result
if self.persister and battery_feature is None:
self.persister["_battery"] = feature
self.persister["_battery"] = feature.value
return battery
except Exception:
if self.persister and battery_feature is None:
Expand Down

0 comments on commit 0da8fd5

Please sign in to comment.