Commit Graph
3 Commits
Author SHA1 Message Date
constantin 0b284bda4d Fix relay not turning off after integration restart
On restart, pv_state resets to IDLE so the computed decision is always
  False on the first recalculate. Comparing against self.decision (also
  False) meant relay_control was never called, leaving the relay physically
  ON past the PV target and cut-off temperature limits.

  - Compare decision against the actual relay_on state instead of the
    coordinator's previous self.decision, so any discrepancy (including
    one left by a restart or an external integration) is corrected
    immediately on every recalculate.
  - Call _recalculate() at the end of async_setup() so the relay is synced
    on startup without waiting for an external state-change event.

  Co-Authored-By: Claude
2026-05-12 10:24:45 +03:00
github-actions[bot] 74f5ca457e Bump version to 1.0.1 2026-02-26 09:56:06 +00:00
Constantin Pascal 73d5b8aeca Initial push 2026-02-26 09:58:44 +02:00