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

maximunited / imou_life / 25179474096 / 1
90%
master: 90%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2026 05:25PM UTC
Files 20
Run time 1s
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.1

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>

938 of 1286 relevant lines covered (72.94%)

0.73 hits per line

Source Files on job run-3.13 - 25179474096.1
  • Tree
  • List 20
  • Changed 9
  • Source Changed 9
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25179474096
  • 79dd4ba5 on github
  • Prev Job for on master (#25178806524.3)
  • Next Job for on master (#25180020454.3)
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