GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Preserve hub child module data across partial updates by o-gent · Pull Request #1813 · python-kasa/python-kasa Conversation
Contributor
Split from #1806. Merge child module responses into the existing cache instead of discarding data for modules not due for refresh. The independent regression uses existing Cloud and TriggerLogs modules on H100 and KH100 children. Both cases fail before the fix and pass afterward, without skipping. Validation: child-device tests, Ruff checks, and targeted mypy passed. Please merge before either new 15-minute history module.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
o-gent
marked this pull request as ready for review
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## master #1813 +/- ## ========================================== + Coverage 93.43% 93.44% +0.01% ========================================== Files 160 160 Lines 10095 10113 +18 Branches 1042 1045 +3 ========================================== + Hits 9432 9450 +18 Misses 471 471 Partials 192 192 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could this be related to #1804 ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @o-gent! This looks like a reasonable change, but please add some debug-level logging to make it easier to debug potential issues caused by caching the responses.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # Modules not due for an update still need their cached responses. | ||
| self._last_update.update(resp) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The approach is great and I agree that we should do this! Please add a debug log entry for the case when the data was not received, as that can help debugging caching issues this may cause.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Merge module query responses instead of discarding cached responses for modules not due for refresh. Regress using existing Cloud and TriggerLogs modules on H100 and KH100 children, independent of new thermostat modules. Co-authored-by: Copilot <[email protected]>
Cover partial and missing responses, complete refreshes, and explicit errors without changing cache semantics. Co-authored-by: Copilot <[email protected]>
7fb9009 to
b8fc90c
Compare
Requested changes must be addressed to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.