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

maximunited / imou_life / 25341560263
90%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 08:25PM UTC
Jobs 4
Files 22
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

04 May 2026 08:23PM UTC coverage: 87.917% (-1.6%) from 89.545%
25341560263

push

github

web-flow
feat: implement dynamic device discovery for Gold tier compliance (#35)

Implements automatic detection and addition of new Imou devices to Home Assistant after initial setup.

## Key Features
- Background polling every 60 minutes (configurable 5 min - 24 hours)
- User confirmation dialog before adding discovered devices
- Enabled by default for seamless UX
- Single coordinator on first entry (prevents duplicate polling)
- Graceful rate limit handling
- Transfer support when first entry removed

## Implementation
- Created ImouDiscoveryCoordinator for periodic device polling
- Added discovery source handler in config flow
- Implemented lifecycle management (start/stop/transfer)
- Added integration options for enable/disable and interval

## Test Coverage
- ? All 418 unit tests passing
- ? 13 discovery coordinator tests
- ? 8 config flow discovery tests
- ? Zero test failures

## Files Modified
- coordinator.py: ImouDiscoveryCoordinator class
- __init__.py: Discovery initialization and lifecycle
- config_flow.py: Discovery handlers and options
- const.py: Discovery constants
- strings.json, translations/en.json: Translations
- tests/fixtures/mocks.py: Enhanced mock framework

## Files Added
- tests/unit/test_discovery_coordinator.py (13 tests)
- tests/unit/test_config_flow_discovery.py (8 tests)
- tests/integration/test_multi_device_discovery.py (infrastructure)

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

72 of 111 new or added lines in 4 files covered. (64.86%)

1448 of 1647 relevant lines covered (87.92%)

3.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
27
61.64
-4.89% custom_components/imou_life/config_flow.py
12
81.77
-3.13% custom_components/imou_life/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.12 - 25341560263.1 04 May 2026 08:24PM UTC 22
87.92
GitHub Action Run
2 run-3.11 - 25341560263.2 04 May 2026 08:24PM UTC 22
87.92
GitHub Action Run
3 run-3.13 - 25341560263.3 04 May 2026 08:25PM UTC 22
87.92
GitHub Action Run
4 run-3.14 - 25341560263.4 04 May 2026 08:25PM UTC 22
87.89
GitHub Action Run
Source Files on build 25341560263
  • Tree
  • List 22
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25341560263
  • 249f62a8 on github
  • Prev Build on master (#25292627473)
  • Next Build on master (#25342037428)
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