1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-04-18 07:35:22 +01:00
Files
supervisor/tests/jobs
Stefan Agner fec8e859fe Use sets for unhealthy and unsupported reasons (#6703)
* Use sets for unhealthy and unsupported reasons

The unhealthy and unsupported reason collections in ResolutionManager
are unique by nature and used manual deduplication with list operations.
Convert them to sets for a more natural data structure fit.

At serialization boundaries (REST API and WebSocket events), use
sorted() to ensure deterministic output order.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix set usage in Sentry filter and test

The unhealthy set in the Sentry filter context needs sorted() for
serialization, and the test was using list subscript on the set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 17:20:23 +02:00
..