Commit Graph
4 Commits
Author SHA1 Message Date
thatguygriff 2248b7197a Merge pull request 'Update README to reflect implemented functionality' (#2) from docs/update-readme into main
Validate / Hassfest validation (push) Failing after 3s
Validate / HACS validation (push) Failing after 3s
Reviewed-on: #2
2026-05-26 13:42:02 +00:00
thatguygriff a7ceca779b Update README to reflect implemented functionality
Validate / Hassfest validation (pull_request) Failing after 29s
Validate / HACS validation (pull_request) Failing after 27s
The "Known Limitations & Roadmap" section claimed device control
was not implemented and that Socket.IO was unused. Both are now
inaccurate — climate control (mode, temperature, fan speed, swing)
ships via Socket.IO machine events, and live device-data updates
come over the same socket connection.

Replace that section with a "How It Works" overview and a smaller
"Known Limitations" list reflecting the actual remaining gaps.
2026-05-26 10:10:53 -03:00
thatguygriff bff10aadb5 Merge pull request 'Treat 404 as auth error and persist refreshed tokens' (#1) from fix/token-refresh-404 into main
Validate / Hassfest validation (push) Failing after 1s
Validate / HACS validation (push) Failing after 0s
Reviewed-on: #1
2026-05-26 13:08:18 +00:00
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