Hot-fix release addressing a critical regression in v1.7.1 plus new device support and an auth reliability improvement.
🔴 Critical Fix
-
Fix websockets v16 breakage causing ALL device commands to fail (#567, fixes #564) — The
websocketslibrary v16 removed the.closedproperty from its newClientConnectionasync API. Two references toself._ws.closedincommandtransport.pycaused: (1) everysend_internalcall to silently fail (theAttributeErrorwas swallowed byexcept Exception), making commands time out after 15s of retries; and (2)stop_transport()to crash, preventing integration reload. Removed both.closedchecks —ws.send()already raisesConnectionClosedif the socket isn't open, andws.close()is idempotent in v16.If you were stuck on v1.7.1 with non-working commands, this fix resolves it. No configuration changes needed.
🟢 New Device Support
- Add DR-HTF018S (Cruiser TF518S) tower fan (#563, fixes #559) — Previously matched only by the generic
DR-HTFprefix fallback (nospeed_rangeorpreset_modes), causing fan controls to show as "Entity Not Available." Now has a specific device entry withspeed_range=(1, 9)and preset modesnormal/natural/sleep/auto. Includes unit and integration tests.
🟠 Reliability Improvement
- Add token refresh and 401 retry for expired auth (#558) — Tokens were fetched once at login with no refresh mechanism. If a token expired during runtime, all REST API calls and WebSocket reconnections would fail silently until a full HA restart. Now the integration detects 401 responses, automatically re-authenticates, refreshes the WebSocket transport token, and retries the failed request. The login API itself is excluded from retry to prevent infinite loops.
Summary
| PR | Type | Description |
|---|---|---|
| #567 | 🔴 Critical Fix | Fix websockets v16 API breakage (all commands failing) |
| #563 | 🟢 New Device | DR-HTF018S (Cruiser TF518S) tower fan support |
| #558 | 🟠 Improvement | Token refresh & automatic 401 retry |
Full Changelog: v1.7.1...v1.7.2