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

maximunited / imou_life / 25365241010
90%

Build:
DEFAULT BRANCH: master
Ran 05 May 2026 08:14AM 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

05 May 2026 08:12AM UTC coverage: 87.695% (-0.3%) from 87.947%
25365241010

push

github

web-flow
feat: achieve Platinum tier certification (technical excellence) (#39)

* feat: achieve Platinum tier certification (technical excellence)

Implement all Platinum tier requirements for Home Assistant integration quality scale.

## Type Safety (mypy clean - 0 errors)
- Add comprehensive type annotations throughout codebase
- Fix coordinator typing with TYPE_CHECKING imports
- Add ConfigFlowResult type for config flows
- Fix device_class return types (str | None)
- Add proper None checks for config entry handling
- Convert state to native_value in sensors (modern HA pattern)
- Fix persistent_notification import and usage

## Code Quality & Comments
- Add clarifying comments for complex logic (battery hysteresis, rate limiting, discovery)
- Explain WHY not just WHAT in non-obvious code sections
- Document battery optimization strategy
- Clarify discovery coordinator lifecycle and transfer logic
- Add performance optimization rationale comments

## Files Modified
- `entity.py`, `battery_entity.py`: Add typed coordinator annotations
- `coordinator.py`: Fix discovered_devices type, add rate limit comments
- `config_flow.py`: Add ConfigFlowResult type, fix None handling
- `button.py`, `binary_sensor.py`: Fix device_class type compatibility
- `sensor.py`: Convert state to native_value (modern HA), fix return types
- `__init__.py`: Fix persistent_notification usage, add discovery comments
- `battery_coordinator.py`: Add hysteresis explanation comments
- `QUALITY_SCALE.md`: Update to Platinum tier status

## Test Updates
- Fix test_api_status_sensor.py to use native_value
- Fix test_sensor.py to use native_value
- Fix test_init_comprehensive.py persistent_notification mocking

## Verification
- mypy: 0 errors (was 56 errors)
- Tests: 446/446 passing (100%)
- Pre-commit: All hooks passing

## Platinum Tier Requirements Met
v Type Annotations: Full type hints throughout - mypy clean
v Async Code: Fully asynchronous integration
v Performance: Optimized data handli... (continued)

24 of 31 new or added lines in 8 files covered. (77.42%)

2 existing lines in 1 file now uncovered.

1461 of 1666 relevant lines covered (87.7%)

3.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
60.94
-0.7% custom_components/imou_life/config_flow.py
2
91.07
-3.05% custom_components/imou_life/entity.py
1
98.08
-1.92% custom_components/imou_life/battery_entity.py

Coverage Regressions

Lines Coverage ∆ File
2
60.94
-0.7% custom_components/imou_life/config_flow.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11 - 25365241010.1 05 May 2026 08:14AM UTC 22
87.7
GitHub Action Run
2 run-3.12 - 25365241010.2 05 May 2026 08:14AM UTC 22
87.7
GitHub Action Run
3 run-3.13 - 25365241010.3 05 May 2026 08:14AM UTC 22
87.7
GitHub Action Run
4 run-3.14 - 25365241010.4 05 May 2026 08:14AM UTC 22
87.65
GitHub Action Run
Source Files on build 25365241010
  • Tree
  • List 22
  • Changed 9
  • Source Changed 9
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25365241010
  • 1d5aafe9 on github
  • Prev Build on master (#25364983080)
  • Next Build on master (#25365608619)
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