Skip to content

fix: stop temperature forecast falling back to PV power cache - #285

Merged
ohAnd merged 1 commit into
developfrom
276-fix-temperature-forecast-cache-leak
Aug 25, 2026
Merged

fix: stop temperature forecast falling back to PV power cache#285
ohAnd merged 1 commit into
developfrom
276-fix-temperature-forecast-cache-leak

Conversation

@ohAnd

@ohAnd ohAnd commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Temperature and PV power forecasts share one Akkudoktor client method, error handler, cache, and failure counter. A failed temperature request could return cached PV watts mislabeled as Celsius, and the shared failure counter reset on every successful power fetch before it could reach the threshold that triggers the 15C default.

Give temperature its own cache and failure counter, thread the fetch target through the error handler so it selects the matching one, stop feeding fallback data back through the raw-JSON processing step, and add a range check as a fail-safe.

Fixes: #276

Temperature and PV power forecasts share one Akkudoktor client method,
error handler, cache, and failure counter. A failed temperature request
could return cached PV watts mislabeled as Celsius, and the shared
failure counter reset on every successful power fetch before it could
reach the threshold that triggers the 15C default.

Give temperature its own cache and failure counter, thread the fetch
target through the error handler so it selects the matching one, stop
feeding fallback data back through the raw-JSON processing step, and
add a range check as a fail-safe.

Fixes: #276
@ohAnd
ohAnd merged commit 2b276fd into develop Aug 25, 2026
10 checks passed
@ohAnd
ohAnd deleted the 276-fix-temperature-forecast-cache-leak branch August 25, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant