Skip to content

Expose all the batteries that a device might have. Add test cases.#524

Open
sbeitzel wants to merge 2 commits into
python-ring-doorbell:masterfrom
sbeitzel:feature/per-battery-data
Open

Expose all the batteries that a device might have. Add test cases.#524
sbeitzel wants to merge 2 commits into
python-ring-doorbell:masterfrom
sbeitzel:feature/per-battery-data

Conversation

@sbeitzel
Copy link
Copy Markdown

This PR implements the requested feature from #523

The main risk with this is that the changed property in doorbot.py, battery_life now reports only the status of the active battery in a multi-battery device. Before the change, a camera with two batteries, one at 25% and one at 80%, would return the value 100 (since 25 + 80 = 105, but the value is capped at 100), while after this change, the reported value would depend on which was the currently active battery.

sbeitzel added 2 commits May 15, 2026 15:13
Modify test to prove that we're actually using the reported active
battery if there is one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant