Skip to content

fix: remove quality_scale from manifest (HACS validation)#141

Closed
KRoperUK wants to merge 1 commit into
mainfrom
fix/remove-quality-scale-from-manifest
Closed

fix: remove quality_scale from manifest (HACS validation)#141
KRoperUK wants to merge 1 commit into
mainfrom
fix/remove-quality-scale-from-manifest

Conversation

@KRoperUK

Copy link
Copy Markdown
Owner

The quality_scale key is only valid for HA core integrations. HACS validation chokes on it, causing the 'str object has no attribute items' error. Remove it to fix CI.

DimplexEnergySensor._summary() was recomputing summarise_energy up to 4
times per state read (available, native_value, last_reset, and
extra_state_attributes). For accounts with long telemetry histories this
is wasted CPU every coordinator update × sensor count.

Memoize the result keyed on coordinator.last_update_success_time so all
four property reads within the same update cycle share one computation.
The cache invalidates naturally when the coordinator reports fresh data.

Closes #128
@KRoperUK KRoperUK closed this Jul 13, 2026
@github-actions github-actions Bot added the dev-release-cut A dev/RC pre-release was published for this PR or main label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-release-cut A dev/RC pre-release was published for this PR or main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant