github JeffSteinbok/hass-dreo v1.7.2
Release v1.7.2

latest releases: v1.11.11, v1.11.10, v1.11.9...
pre-release8 months ago

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 websockets library v16 removed the .closed property from its new ClientConnection async API. Two references to self._ws.closed in commandtransport.py caused: (1) every send_internal call to silently fail (the AttributeError was swallowed by except Exception), making commands time out after 15s of retries; and (2) stop_transport() to crash, preventing integration reload. Removed both .closed checks — ws.send() already raises ConnectionClosed if the socket isn't open, and ws.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-HTF prefix fallback (no speed_range or preset_modes), causing fan controls to show as "Entity Not Available." Now has a specific device entry with speed_range=(1, 9) and preset modes normal/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

Don't miss a new hass-dreo release

NewReleases is sending notifications on new releases.