feat(daily_savings): expose lifetime co2_saved_kg as attribute - #11
Merged
Conversation
Setup-time fetch of `system.get_impact_overview()` populates a new `co2_saved_kg` attribute on the daily-savings sensor. Non-fatal on failure — attribute is absent when the endpoint returns None or errors. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
mrebbert
pushed a commit
that referenced
this pull request
Aug 12, 2026
Three PRs (#12/#13/#14) landed post-#11 with no user-visible change — document them under `[Unreleased] > Changed` so the eventual release captures them alongside the co2_saved_kg addition. Per feedback-release-notes-scope memory: refactor mentions stay in CHANGELOG only; release-notes/v0.1.53.md (when created at release time) stays user-facing. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
co2_saved_kgattribute on thedaily_savingssensor.system.get_impact_overview()(lifetime CO2 avoided, kg) fetched once at setup.Test plan
.venv/bin/pytest -q→ 226 passed).sensor.heizungskeller_1k5_tagesersparnisnow showsco2_saved_kg: 3206.15on the attributes.