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

maximunited / imou_life / 25138360867
90%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 11:04PM UTC
Jobs 3
Files 20
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

29 Apr 2026 11:03PM UTC coverage: 71.196% (-0.2%) from 71.362%
25138360867

push

github

web-flow
fix: improve config flow UI - conditional URL field and better labels (#13)

Fixed multiple UI issues in the config flow login step:

**Bug Fix:**
- URL field no longer shows for preset servers (only appears when "Custom" is selected)
- Eliminates the confusing behavior where URL didn't update when switching servers
- URL field is now only visible and editable when user selects "Custom" server

**Enhancements:**
1. **Conditional URL Field**
   - For preset servers (Global, Frankfurt, Singapore, Virginia, China): URL field hidden
   - For "Custom" server: URL field appears as required field for manual entry
   - Cleaner, less confusing UI - users only see what they need

2. **Improved "Enable Discovery" Label and Description**
   - Changed from "Discover registered devices" to "Enable Device Discovery"
   - Added helpful description: "Automatically discover all devices registered to your Imou account. Disable to manually enter a specific device ID instead."
   - Makes it clear what this option does and when to disable it

3. **Updated Field Labels**
   - "API Base URL" → "Custom API URL" (only shown for custom server)
   - More accurate label since it's only for custom servers

**Technical Changes:**
- Config flow schema now built conditionally based on selected server
- URL field only added to schema when selected_server == "custom"
- Removed unused DEFAULT_API_URL import
- Updated all 8 translation files with new labels and descriptions

**User Experience Before:**
- User selects "Frankfurt" → URL shows old value (doesn't update)
- Confusing whether URL is used or ignored
- Unclear what "enable_discover" means

**User Experience After:**
- User selects "Frankfurt" → no URL field shown (clean)
- User selects "Custom" → URL field appears for manual entry
- Clear description explains discovery vs manual device entry
- Intuitive and straightforward

**Tests:**
- All 229 unit tests passing
- Pre-commit hooks passing
- Config flow tests verify both preset ... (continued)

0 of 7 new or added lines in 1 file covered. (0.0%)

917 of 1288 relevant lines covered (71.2%)

2.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
0.0% custom_components/imou_life/config_flow.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11 - 25138360867.1 29 Apr 2026 11:04PM UTC 20
71.2
GitHub Action Run
2 run-3.12 - 25138360867.2 29 Apr 2026 11:04PM UTC 20
71.2
GitHub Action Run
3 run-3.13 - 25138360867.3 29 Apr 2026 11:05PM UTC 20
71.2
GitHub Action Run
Source Files on build 25138360867
  • Tree
  • List 20
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25138360867
  • e6492007 on github
  • Prev Build on master (#25137884803)
  • Next Build on master (#25138390026)
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