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

maximunited / imou_life / 25343466441
90%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 09:06PM 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 09:04PM UTC coverage: 87.947% (+0.03%) from 87.917%
25343466441

push

github

maximunited
fix: add missing hysteresis and state persistence in battery coordinator

Found 3 actual code bugs while fixing integration tests:

1. Battery-based sleep mode was missing hysteresis logic
   - Sleep mode would exit immediately when battery recovered slightly
   - Added hysteresis: stay asleep until battery > threshold + 10%
   - Prevents rapid on/off cycling

2. set_power_mode() wasn't persisting state internally
   - Called device API but didn't update self._power_mode
   - State would be lost after setting

3. set_led_indicators() wasn't persisting state internally
   - Called device API but didn't update self._led_indicators
   - State would be lost after setting

Also fixed integration tests:
- test_battery_based_sleep_activation: Now passes with hysteresis
- test_power_mode_changes_propagate: Fixed to check async method
- test_led_indicators_toggle: Fixed to check async method
- test_battery_data_caching: Fixed to test coordinator caching, not method caching
- Added async_refresh() call before checking coordinator.data

Integration tests: 9 passing (was 5), 16 failing (was 20)

5 of 5 new or added lines in 1 file covered. (100.0%)

1452 of 1651 relevant lines covered (87.95%)

3.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 25343466441.1 04 May 2026 09:06PM UTC 22
87.95
GitHub Action Run
2 run-3.12 - 25343466441.2 04 May 2026 09:06PM UTC 22
87.95
GitHub Action Run
3 run-3.11 - 25343466441.3 04 May 2026 09:06PM UTC 22
87.95
GitHub Action Run
4 run-3.14 - 25343466441.4 04 May 2026 09:06PM UTC 22
87.92
GitHub Action Run
Source Files on build 25343466441
  • Tree
  • List 22
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25343466441
  • 34d1abeb on github
  • Prev Build on master (#25342527178)
  • Next Build on master (#25343833094)
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