10 Commits

Author SHA1 Message Date
thatguygriff dd1cc76580 Treat 404 as auth error and persist refreshed tokens
Validate / Hassfest validation (pull_request) Failing after 20s
Validate / HACS validation (pull_request) Failing after 0s
The DKN Cloud NA API returns 404 (not 401) when tokens are expired,
which caused the integration to silently fail with UpdateFailed
indefinitely instead of attempting a token refresh or triggering
reauth. Refreshed tokens were also only held in memory, so they
were lost on Home Assistant restart.

- Add 404 to auth_error_statuses on is_logged_in, refresh_access_token,
  and fetch_installations.
- Persist refreshed access + refresh tokens back to the config entry
  after each successful coordinator update.
- Skip the entry reload listener for token-only option updates to
  avoid a reload loop on every refresh.
- Log API 4xx responses at WARNING with the body so failures are
  visible in HA logs without enabling debug logging.
2026-05-26 09:58:57 -03:00
Sebastien Lavoie aa81851243 resimplify 2026-03-30 20:49:57 -04:00
Sebastien Lavoie 04e1d488f9 Dynamic fan speeds 2026-03-30 20:35:13 -04:00
Sebastien Lavoie 0dab86d205 Send + ack 2026-03-30 10:07:01 -04:00
Sebastien Lavoie 7f8bc63c62 Smoke test 2026-03-30 08:07:20 -04:00
Sebastien Lavoie f7aa9ac00f Fix socket connection 2026-03-29 10:06:16 -04:00
Sebastien Lavoie f805015b74 Implement write actions 2026-03-29 09:52:40 -04:00
Sebastien Lavoie 1e1df6a2e7 Implement socket connection 2026-03-29 09:40:54 -04:00
Sebastien Lavoie 8a4d040bac fix: implement DKN Cloud NA authentication 2026-03-29 09:22:43 -04:00
Sebastien Lavoie 0beaa71fdc feat: add DknCloudNaClient stub 2026-03-29 08:44:43 -04:00