Skip to content

fix(history): skip update entity restoration#4302

Open
mgazza wants to merge 1 commit into
mainfrom
fix/update-version-history-timeouts
Open

fix(history): skip update entity restoration#4302
mgazza wants to merge 1 commit into
mainfrom
fix/update-version-history-timeouts

Conversation

@mgazza

@mgazza mgazza commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • skip HA history restoration for update entities, which are synthesised after release discovery and are non-restorable
  • prevent an absent update state from registering an empty long-range HAHistory lookup that is retried periodically
  • retain the existing history fallback for ordinary entities

Problem

Update entities are generated at runtime and explicitly non-restorable. When an update entity has no current state during startup, attempting to restore it from entity history adds an empty lookup to HAHistory tracking. The tracker then retries that unnecessary lookup, producing avoidable backend load and timeout noise.

Tests

  • config_item_range_clamp
  • plugin_startup
  • hahistory
  • pre-commit: whitespace, EOF, Ruff, Black, cspell

Risk

load_user_config is a central startup path, but the behaviour change is restricted to type == "update". Regression coverage verifies normal history fallback remains active.

@mgazza
mgazza force-pushed the fix/update-version-history-timeouts branch from 342448a to 790c8c9 Compare July 24, 2026 22:46
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