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

maximunited / imou_life / 25179474096
90%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2026 05:24PM 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

30 Apr 2026 05:22PM UTC coverage: 72.939% (-0.1%) from 73.086%
25179474096

push

github

web-flow
feat: migrate to entry.runtime_data pattern (Bronze tier requirement) (#18)

Migrate from legacy hass.data[DOMAIN] to modern entry.runtime_data pattern,
completing one of the critical Bronze tier requirements.

Changes:
- __init__.py: Use entry.runtime_data instead of hass.data[DOMAIN]
- async_setup_entry: Set entry.runtime_data = coordinator
- async_unload_entry: Access coordinator via entry.runtime_data
- All platform files updated (8 files):
  - camera.py, sensor.py, switch.py
  - battery_binary_sensor.py, battery_button.py, battery_select.py
  - diagnostics.py
  - platform_setup.py
- Removed unused DOMAIN imports from all updated files

Test Updates:
- test_diagnostics.py: Mock entry.runtime_data instead of hass.data
- test_init.py: Check entry.runtime_data instead of hass.data
- MockConfigEntry: Added runtime_data attribute
- MockHomeAssistant: Sets entry.runtime_data in async_setup

Quality Scale Progress:
- Bronze: 16/19 complete (84%) - Up from 15/19 (79%)
- runtime-data: ? DONE
- 3 Bronze tier requirements remaining:
  1. has-entity-name (critical, breaking change)
  2. entity-event-setup (medium priority)
  3. brands (low priority)

Tests:
- All 241 unit tests passing ?
- 2 skipped (expected)

This is a non-breaking change that modernizes the integration to follow
Home Assistant 2024.2+ patterns. The entry.runtime_data pattern provides
better encapsulation and cleaner lifecycle management.

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>

4 of 11 new or added lines in 9 files covered. (36.36%)

938 of 1286 relevant lines covered (72.94%)

2.19 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
63.89
-0.49% custom_components/imou_life/battery_binary_sensor.py
1
72.58
0.0% custom_components/imou_life/battery_button.py
1
74.32
0.0% custom_components/imou_life/battery_select.py
1
70.93
0.0% custom_components/imou_life/camera.py
1
47.06
-2.94% custom_components/imou_life/platform_setup.py
1
93.65
0.0% custom_components/imou_life/sensor.py
1
27.87
0.0% custom_components/imou_life/switch.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 25179474096.1 30 Apr 2026 05:24PM UTC 20
72.94
GitHub Action Run
2 run-3.12 - 25179474096.2 30 Apr 2026 05:25PM UTC 20
72.94
GitHub Action Run
3 run-3.11 - 25179474096.3 30 Apr 2026 05:24PM UTC 20
72.94
GitHub Action Run
Source Files on build 25179474096
  • Tree
  • List 20
  • Changed 9
  • Source Changed 9
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25179474096
  • 79dd4ba5 on github
  • Prev Build on master (#25178806524)
  • Next Build on master (#25180020454)
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