• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

maximunited / imou_life / 25264313914
90%

Build:
DEFAULT BRANCH: master
Ran 02 May 2026 11:18PM UTC
Jobs 3
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 May 2026 11:16PM UTC coverage: 89.542% (-3.3%) from 92.809%
25264313914

push

github

web-flow
feat: implement reconfiguration flow for Gold tier compliance (#19) (#29)

* feat: implement reconfiguration flow for Gold tier compliance (#19)

Added reconfiguration flow allowing users to proactively update API credentials and server settings without deleting and re-adding the integration.

**Changes:**

config_flow.py:
- Added `async_step_reconfigure()` entry point (line 352)
- Added `async_step_reconfigure_confirm()` main logic (line 367)
- Imported DEFAULT_API_URL constant
- Users can update app_id, app_secret, and API server/region
- Custom API URL supported
- Credentials validated before accepting changes
- Entry data updated and integration reloaded automatically
- Comprehensive error handling (auth failed, rate limit, connection errors)

translations/en.json:
- Added `reconfigure_confirm` step translations with:
  - Title, description, data fields, and data descriptions
  - User-friendly guidance for security (app secret not shown)
- Added `reconfigure_successful` abort reason

gold_tier_verification.md:
- Marked requirement #19 (reconfiguration-flow) as IMPLEMENTED
- Updated compliance from 17/21 (81%) to 18/21 (86%)
- Updated applicable rules compliance from 85% to 90%
- Added reconfiguration-flow to completed roadmap items
- Updated recommendations section to reflect 90% Gold tier achievement

**Testing:**
- All 392 unit tests pass
- No regressions in existing config flow tests
- Syntax validation passed

**Gold Tier Impact:**
- Achievement: 18/21 requirements (86%)
- Applicable rules: 18/20 (90%)
- Remaining: 3 advanced features (dynamic-devices, exception-translations, icon-translations)

**Home Assistant Quality Scale:** Gold tier requirement #19 ?

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: address code review issues in reconfiguration flow

Fixed 3 bugs identified by Qodo code review:

Bug 1: HTTP session leak (CRITICAL)
- Issue: Created new aiohttp session without closing it
- Fix: Use async_get_clientsession ... (continued)

4 of 58 new or added lines in 1 file covered. (6.9%)

1370 of 1530 relevant lines covered (89.54%)

2.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
54
66.54
-17.81% custom_components/imou_life/config_flow.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 25264313914.1 02 May 2026 11:18PM UTC 21
89.54
GitHub Action Run
2 run-3.11 - 25264313914.2 02 May 2026 11:18PM UTC 21
89.54
GitHub Action Run
3 run-3.12 - 25264313914.3 02 May 2026 11:18PM UTC 21
89.54
GitHub Action Run
Source Files on build 25264313914
  • Tree
  • List 21
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25264313914
  • b1911a3a on github
  • Prev Build on master (#25263261458)
  • Next Build on master (#25286958934)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc