Skip to content

4.0.2: auto-clear stale encryption key after repeated update failures- #442

Choose a tag to compare

@RobHofmann RobHofmann released this 16 Sep 20:39
· 22 commits to master since this release
bcf134d

When a Gree AC rotates its session key (reproduced by putting the unit into Wi-Fi re-pairing mode via MODE + WIFI), the integration kept encrypting requests with the stale cached key forever — the climate entity stayed Unavailable until the user manually reloaded the integration.

This patch tracks consecutive update failures and, after a threshold, discards the cached key so the existing async_update re-bind path auto-recovers on the next poll tick. User-configured keys are preserved.

See #441 for full symptoms, logs, root-cause analysis, and repro steps.