Skip to content

v0.3.0: Lifetime tile, one-tap reload after updates - #5

Merged
PeterSlijkhuis merged 6 commits into
mainfrom
claude/project-thread-1p9qg3
Sep 26, 2026
Merged

PeterSlijkhuis merged 6 commits into
mainfrom
claude/project-thread-1p9qg3

Conversation

@PeterSlijkhuis

@PeterSlijkhuis PeterSlijkhuis commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Before: The card only showed Today and This month. After every update, the phone app kept running the old card until the user reset the frontend cache and fully closed the app. The README pointed to a menu that no longer exists.

After: The card has a full-width Lifetime tile with "Since ". After an update, the card shows an orange "Battery ROI was updated" bar, and one tap reloads the page with the new card. The README troubleshooting line names the "Custom element doesn't exist" error and gives the fix for a first install: Troubleshooting → Reset frontend cache, then fully close the app.

How: The rate sensor now reports the integration version as an attribute. The card compares it with its own CARD_VERSION and shows the reload bar when they differ, and a test keeps the two versions in step. sensor.battery_roi_profit_total gains tracking_since, and the card has a new total option. Card screenshots were re-taken in Home Assistant 2026.2. Version bumped to 0.3.0. 19 tests pass.

@PeterSlijkhuis PeterSlijkhuis changed the title README: fix for "Custom element doesn't exist" in the phone app v0.3.0: Lifetime tile on the card, phone-app cache fix in README Sep 26, 2026
@PeterSlijkhuis PeterSlijkhuis changed the title v0.3.0: Lifetime tile on the card, phone-app cache fix in README v0.3.0: Lifetime tile, one-tap reload after updates Sep 26, 2026
@PeterSlijkhuis
PeterSlijkhuis marked this pull request as ready for review September 26, 2026 11:17
@PeterSlijkhuis
PeterSlijkhuis merged commit 241f85f into main Sep 26, 2026
2 checks passed
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