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

brianegge / garbage_bin / 23641105129
71%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2026 10:06AM UTC
Jobs 1
Files 9
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

27 Mar 2026 10:05AM UTC coverage: 70.732% (+12.6%) from 58.127%
23641105129

push

github

web-flow
Auto-republish discovery configs when Home Assistant restarts (#272)

* Auto-republish discovery configs when Home Assistant restarts

Extract discovery config publishing into publish_discovery() and subscribe
to homeassistant/status. When HA sends "online", all entity discovery
configs are re-published so HA picks them up without restarting the container.

https://claude.ai/code/session_019WowacijwJhgd6JfgCZB3g

* Use userdata callback arg instead of private _userdata attribute

Address review feedback: use the userdata parameter passed by paho to
on_message instead of accessing client._userdata. Also remove brittle
exact call_count assertion in test.

https://claude.ai/code/session_019WowacijwJhgd6JfgCZB3g

* Increase test coverage for publish_discovery and on_message

Add payload validation test, empty devices test, end-to-end on_message
test, and retain flag assertions to improve patch coverage.

https://claude.ai/code/session_019WowacijwJhgd6JfgCZB3g

* Add main() setup test to cover MQTT wiring and discovery call

The git diff reordered get_section and main(), causing codecov to see
all main() lines as new additions needing coverage. This test mocks
heavy deps (YOLO, sdnotify, paho) and verifies the setup: userdata
wiring, homeassistant/status subscription, and publish_discovery call.

https://claude.ai/code/session_019WowacijwJhgd6JfgCZB3g

---------

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

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

28 existing lines in 1 file now uncovered.

522 of 738 relevant lines covered (70.73%)

0.71 hits per line

Coverage Regressions

Lines Coverage ∆ File
28
67.16
23.22% main.py
Jobs
ID Job ID Ran Files Coverage
1 23641105129.1 27 Mar 2026 10:06AM UTC 9
70.73
GitHub Action Run
Source Files on build 23641105129
  • Tree
  • List 9
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23641105129
  • 8afb178d on github
  • Prev Build on master (#23403314575)
  • Next Build on master (#23698136535)
  • Delete
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