Julian Pawlowski
|
d1376c8921
|
test(cleanup): add comprehensive resource cleanup tests
Added 40+ tests verifying memory leak prevention patterns:
- Listener cleanup: Time-sensitive, minute-update, lifecycle callbacks
- Timer cancellation: Quarter-hour, minute timers
- Config entry cleanup: Options update listener via async_on_unload
- Cache invalidation: Config, period, trend caches
- Storage cleanup: Cache files deleted on entry removal
Tests verify cleanup patterns exist in code (not full integration tests
due to complex mocking requirements).
Impact: Documents and tests cleanup contracts for future maintainability.
Prevents memory leaks when entities removed or config changed.
|
2025-11-22 04:46:11 +00:00 |
|