Skip to content

v1.3.0 - Platinum Architecture & Reliability Hardening

Choose a tag to compare

@fabiobrolo fabiobrolo released this 05 Nov 14:37
· 5 commits to main since this release

🚀 Multi WAN Speedtest & DDNS v1.3.0 — Platinum Architecture & Reliability Hardening

✨ Highlights

  1. Home Assistant Platinum Architecture (HA 2024.4+ / 2026.x / Python 3.14):
    • Strict PEP 695 typing (type MultiWanConfigEntry = ConfigEntry[MultiWanData]) via entry.runtime_data and WanLinkState(TypedDict) in DataUpdateCoordinator[MultiWanRuntimeState].
    • Standardized EntityDescription dataclasses (SensorEntityDescription, BinarySensorEntityDescription, ButtonEntityDescription) across all platforms (sensor, binary_sensor, button).
    • Complete config_flow.py supporting user, options_flow, reconfigure, and reauth flows with port-range overlap validation and translated exception routing (ConfigEntryAuthFailed, ConfigEntryNotReady, ServiceValidationError, UpdateFailed).
  2. Reliability Hardening & Race-Condition Protection:
    • Transient Failure Tolerance: _async_update_data tracks consecutive failures (_consecutive_failures < 3) and preserves the last valid state before raising UpdateFailed, keeping entities available during brief network blips.
    • Non-Blocking Action Execution (mode: restart Safe): Button presses and multi_wan_speedtest.run_speedtest service calls schedule speed tests in a debounced background task protected by asyncio.shield(...) and per-WAN asyncio.Lock().
    • Socket Reuse & Thread Isolation: Immediate TIME_WAIT port reuse via SO_REUSEADDR and SO_REUSEPORT inside thread-isolated source-port binding.
  3. 100% Dynamic Gateway Discovery (Zero Hardcode):
    • Dynamically discovers the gateway router in the Home Assistant Device Registry and links the unified Multi WAN Speedtest device via via_device_id.
  4. Complete Localization (i18n), Light/Dark Brand Assets & Bilingual Documentation:
    • 100% key parity across strings.json, translations/en.json, translations/pt-BR.json, and translations/pt.json.
    • Full Light & Dark mode brand assets (icon.png, icon@2x.png, logo.png, logo@2x.png, dark_icon.png, dark_icon@2x.png, dark_logo.png, dark_logo@2x.png).
    • Bilingual README.md and README.pt-BR.md with dedicated user/API token prerequisites and tested hardware compatibility matrix (TP-Link ER605 v1.0 1.3.2 Build 20251030 Rel.16640).