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

maximunited / imou_life / 25137776288
90%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2026 10:47PM 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 10:45PM UTC coverage: 71.362% (-0.6%) from 71.978%
25137776288

push

github

web-flow
feat: Improve API server selector UI with auto-populated URL field (#12)

* feat: improve API server selector UI with auto-populated URL field

Enhance the config flow login step with better server selection UX:

**UI Improvements:**
- Renamed "oregon" to "virginia" (geo-located to Virginia Beach, USA not Oregon)
- Dropdown now shows proper capitalized names with countries:
  - "Global (openapi.easy4ip.com)"
  - "Frankfurt (Germany)"
  - "Singapore"
  - "Virginia (USA)"
  - "China"
  - "Custom"
- API Base URL field now auto-populates with the selected server's URL
- Clearer field labels: "API Server" and "API Base URL"
- Improved descriptions explaining when custom URL is needed

**Technical Changes:**
- Config flow displays selected server URL in the API Base URL field
- When user selects a predefined server, the URL field shows the endpoint
- When user selects "Custom", the URL field is empty for manual entry
- Updated all 8 translation files with new labels and descriptions
- Renamed API_SERVER_OPTIONS key "oregon" -> "virginia" in const.py

**Geo-location Verification:**
- 8.219.71.80 (Global/Singapore) -> Singapore
- 47.245.141.21 (Frankfurt) -> Frankfurt am Main, Germany
- 47.90.226.98 (Virginia) -> Virginia Beach, Virginia, USA
- openapi-or.easy4ip.com resolves to us-east-1 (not Oregon!)

**Tests:**
- All 229 unit tests passing
- Updated test_all_server_options to use "virginia" instead of "oregon"
- Pre-commit hooks passing

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

* fix: handle rate limit errors gracefully during device discovery

When users hit API rate limits during the initial config flow discovery step,
the integration now:
- Detects OP1013 rate limit errors specifically
- Shows a helpful error message explaining the situation
- Automatically redirects to manual device entry instead of looping
- Prevents repeated API calls that would continue hitting the rate limit

**Problem:**
Users experiencing rate limits during disc... (continued)

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

917 of 1285 relevant lines covered (71.36%)

2.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
0.0
0.0% custom_components/imou_life/config_flow.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 25137776288.1 29 Apr 2026 10:47PM UTC 20
71.36
GitHub Action Run
2 run-3.12 - 25137776288.2 29 Apr 2026 10:47PM UTC 20
71.36
GitHub Action Run
3 run-3.11 - 25137776288.3 29 Apr 2026 10:47PM UTC 20
71.36
GitHub Action Run
Source Files on build 25137776288
  • Tree
  • List 20
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25137776288
  • 6b511b18 on github
  • Prev Build on master (#25136072800)
  • Next Build on master (#25137884803)
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