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

maximunited / imou_life / 26193607104
90%

Build:
DEFAULT BRANCH: master
Ran 20 May 2026 10:29PM UTC
Jobs 4
Files 23
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

20 May 2026 10:27PM UTC coverage: 90.76% (-0.2%) from 90.936%
26193607104

push

github

web-flow
Fix: Implement intelligent rate limit backoff to prevent API spam (#57)

* fix: suppress Scrutinizer false positives with inline noqa comments

Add inline suppressions for 3 Scrutinizer warnings in __init__.py where
static analysis incorrectly flags DOMAIN as undefined. The variable is
properly imported from .const on line 28.

Changes:
- Line 91: hass.data.setdefault(DOMAIN, {})
- Line 354: hass.config_entries.async_entries(DOMAIN)
- Line 382: if DOMAIN in hass.data

These are false positives from Scrutinizer's import tracking. Real
undefined variables are still caught by:
- flake8 (F82 checks in CI)
- Python runtime (NameError)
- 456 passing unit tests

The 4th warning (CONF_API_URL line 463) appears to be from old code
that was already refactored 9 months ago and no longer exists.

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

* fix: suppress Scrutinizer false positives in config_flow.py

Add inline noqa suppressions for 9 false positive warnings in config_flow.py
where Scrutinizer's static analysis incorrectly flags imported constants
as undefined.

False positives suppressed:
- Line 533: key in list comprehension scope
- Lines 746-748: OPTION_ENABLE_DISCOVERY, DEFAULT_ENABLE_DISCOVERY
- Lines 754-756: OPTION_DISCOVERY_INTERVAL, DEFAULT_DISCOVERY_INTERVAL
- Line 770: OPTION_API_TIMEOUT
- Line 781: OPTION_CALLBACK_URL
- Line 787: OPTION_CAMERA_WAIT_BEFORE_DOWNLOAD
- Line 803: OPTION_WAIT_AFTER_WAKE_UP

All constants are properly imported from .const (lines 13-60).

Duplication warnings about empty string cleanup pattern are intentional -
each option requires its own check and cannot be abstracted without
complicating the code.

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

* fix: suppress Scrutinizer false positives in battery_coordinator.py

Add inline noqa suppressions for 4 false positive warnings where
Scrutinizer incorrectly flags DOMAIN as undefined in HomeAssistantError
exception constructors.

False positives suppr... (continued)

88 of 100 new or added lines in 3 files covered. (88.0%)

1601 of 1764 relevant lines covered (90.76%)

3.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
94.59
-5.41% custom_components/imou_life/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11 - 26193607104.1 20 May 2026 10:29PM UTC 23
90.76
GitHub Action Run
2 run-3.14 - 26193607104.2 20 May 2026 10:29PM UTC 23
90.71
GitHub Action Run
3 run-3.13 - 26193607104.3 20 May 2026 10:29PM UTC 23
90.76
GitHub Action Run
4 run-3.12 - 26193607104.4 20 May 2026 10:29PM UTC 23
90.76
GitHub Action Run
Source Files on build 26193607104
  • Tree
  • List 23
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26193607104
  • 70bfed73 on github
  • Prev Build on master (#26150922658)
  • Next Build on master (#26411063404)
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