Skip to content

Commit

Permalink
Fix battery entry in config.yml
Browse files Browse the repository at this point in the history
Enum is represented as special string, use enum value for config file

Fixes #2700
Related #2273
  • Loading branch information
MattHag committed Dec 15, 2024
1 parent b6f5f86 commit 6e2e849
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 6e2e849

Please sign in to comment.