Skip to content

Refresh Vector battery and lifetime stats periodically - #167

Merged
MTrab merged 3 commits into
masterfrom
fix/vector-battery-refresh
Nov 18, 2026
Merged

MTrab merged 3 commits into
masterfrom
fix/vector-battery-refresh

Conversation

@MTrab

@MTrab MTrab commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Changes

Refresh battery and lifetime stats every five minutes through the existing coordinator. The polling task runs independently of push updates, honors Home Assistant's polling preference, and stops on unload. Charging updates received from Vector during a poll take precedence over the poll result.

Addresses the battery and lifetime-statistics report in #146.

Testing

Ran the full suite in the dev container with Python 3.14.10 and Home Assistant 2026.11.1. All coordinator tests passed. The suite reported 81 passes and the same five sensor test failures reproduced on master.

Limitations

Live robot behavior remains unverified.

Configuration

No configuration changes required.

@github-actions github-actions Bot added bug Something isn't working patch Triggers patch version bump labels Nov 18, 2026
@MTrab MTrab added the pinned Exempt from stale bot label Nov 18, 2026
…refresh

# Conflicts:
#	custom_components/vector/coordinator.py
#	tests/test_coordinator.py
@MTrab
MTrab merged commit b6a00d4 into master Nov 18, 2026
3 checks passed
@MTrab
MTrab deleted the fix/vector-battery-refresh branch November 18, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Triggers patch version bump pinned Exempt from stale bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant