1 Commits
Author SHA1 Message Date
rickandCursor 33708ebb17 v0.1.1: warn about long initial setup; ship icon assets
- Config-flow user step now opens with a bold/all-caps warning that the
  initial setup can take several minutes on installs with many batteries
  (the user reported a multi-minute apparent freeze with 70 devices /
  554 entities). Tells the user not to reload or cancel during setup.
- Adds a teal battery+clock icon at 256x256 and 512x512 under
  custom_components/battery_lifetime/brand/, ready to submit to
  home-assistant/brands as a custom_integrations/battery_lifetime entry
  so HACS can display it instead of "icon not available".
- manifest.json: bump version to 0.1.1; switch documentation and
  issue_tracker URLs to the public GitHub mirror so HACS users land
  somewhere they can actually file bugs.

107 tests still passing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 19:24:37 +02:00
5 changed files with 5 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

@@ -1,9 +1,9 @@
{
"domain": "battery_lifetime",
"name": "Battery Lifetime",
"version": "0.1.0",
"documentation": "https://git.falkvinge.net/rick/hassio-battery-lifetime-integration",
"issue_tracker": "https://git.falkvinge.net/rick/hassio-battery-lifetime-integration/issues",
"version": "0.1.1",
"documentation": "https://github.com/Falkvinge/hassio-integration-battery-lifetime",
"issue_tracker": "https://github.com/Falkvinge/hassio-integration-battery-lifetime/issues",
"codeowners": ["@rickfalkvinge"],
"config_flow": true,
"iot_class": "local_polling",
@@ -3,7 +3,7 @@
"step": {
"user": {
"title": "Set up Battery Lifetime",
"description": "Battery Lifetime tracks every numeric percent battery sensor in Home Assistant. After installation, every eligible battery automatically gets a set of companion entities (predicted replacement date, observed drain rate, profile selector, mark-replaced button, etc.). You can opt out individual batteries later. Press Submit to continue."
"description": "**\u26a0 HEADS UP \u2014 INITIAL SETUP CAN TAKE SEVERAL MINUTES.**\n\nBattery Lifetime auto-discovers every numeric percent battery sensor in Home Assistant and creates around eight companion entities per battery (replace-by, drain rate, profile, threshold, etc.).\n\n**IF YOU HAVE MANY BATTERY-POWERED DEVICES \u2014 SAY 50+ BATTERIES, WHICH MEANS 400+ NEW ENTITIES \u2014 THE UI WILL APPEAR FROZEN FOR SEVERAL MINUTES AFTER YOU PRESS SUBMIT** while the entities are registered and the one-time cold-start backfill from long-term statistics runs. **Don't reload, don't cancel \u2014 just wait. It is working.**\n\nYou can opt out individual batteries from the integration's options afterwards. Press Submit to continue."
}
},
"abort": {
@@ -3,7 +3,7 @@
"step": {
"user": {
"title": "Set up Battery Lifetime",
"description": "Battery Lifetime tracks every numeric percent battery sensor in Home Assistant. After installation, every eligible battery automatically gets a set of companion entities (predicted replacement date, observed drain rate, profile selector, mark-replaced button, etc.). You can opt out individual batteries later. Press Submit to continue."
"description": "**\u26a0 HEADS UP \u2014 INITIAL SETUP CAN TAKE SEVERAL MINUTES.**\n\nBattery Lifetime auto-discovers every numeric percent battery sensor in Home Assistant and creates around eight companion entities per battery (replace-by, drain rate, profile, threshold, etc.).\n\n**IF YOU HAVE MANY BATTERY-POWERED DEVICES \u2014 SAY 50+ BATTERIES, WHICH MEANS 400+ NEW ENTITIES \u2014 THE UI WILL APPEAR FROZEN FOR SEVERAL MINUTES AFTER YOU PRESS SUBMIT** while the entities are registered and the one-time cold-start backfill from long-term statistics runs. **Don't reload, don't cancel \u2014 just wait. It is working.**\n\nYou can opt out individual batteries from the integration's options afterwards. Press Submit to continue."
}
},
"abort": {