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

maximunited / imou_life / 26684280811
90%

Build:
DEFAULT BRANCH: master
Ran 30 May 2026 12:53PM 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

30 May 2026 12:51PM UTC coverage: 90.838% (+0.08%) from 90.76%
26684280811

push

github

web-flow
fix: auto-cleanup orphan devices on entry setup (#60)

* fix: auto-cleanup orphan devices on entry setup

When a config entry is deleted and re-added, the old device registry
entry (keyed by the previous entry_id) was left behind as an orphan.
This adds cleanup at the start of async_setup_entry that removes any
device whose (DOMAIN, entry_id) identifier no longer matches a live
config entry. Rate-limited or temporarily unavailable devices are safe
since their config entries still exist.

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

* fix: narrow exception handling and add tests for orphan cleanup

Address CodeRabbit and Qodo review feedback:
- Catch (KeyError, AttributeError) instead of broad Exception
- Log actual error details instead of generic message
- Add 6 unit tests covering orphan removal, active device
  retention, foreign device safety, and error handling

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

---------

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

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

1616 of 1779 relevant lines covered (90.84%)

3.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 26684280811.1 30 May 2026 12:53PM UTC 23
90.84
GitHub Action Run
2 run-3.14 - 26684280811.2 30 May 2026 12:53PM UTC 23
90.79
GitHub Action Run
3 run-3.11 - 26684280811.3 30 May 2026 12:53PM UTC 23
90.84
GitHub Action Run
4 run-3.12 - 26684280811.4 30 May 2026 12:54PM UTC 23
90.84
GitHub Action Run
Source Files on build 26684280811
  • Tree
  • List 23
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26684280811
  • ba890a2f on github
  • Prev Build on master (#26682775980)
  • Next Build on master (#26685233213)
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