Skip to content

Releases

v1.3.3

Choose a tag to compare

@fabiobrolo fabiobrolo released this 28 Nov 11:23

What's New in v1.3.3

Process Isolation & Reliability (HACS Review Fixes)

  • Removed all stdlib monkey-patching from the Home Assistant process: speedtests and diagnostics PBR source-port probes now run inside a dedicated, short-lived child Python process (speedtest_worker.py via asyncio.create_subprocess_exec), leaving Home Assistant's socket.create_connection and threading.Thread.start completely untouched.
  • Preserved all_errors semantics inside the isolated child worker's socket.create_connection binding (raising ExceptionGroup when all_errors=True), and removed threading.Thread.start wrapping altogether.
  • Removed urllib.request.install_opener: all HTTP requests use local openers (opener.open(...)) and per-request headers without altering Home Assistant's default opener.
  • Removed runtime brand asset generation (_ensure_brand_assets): only the pre-built static assets shipped in brand/ are used.
  • Added clean subprocess lifecycle tracking and termination on unload/timeout/cancellation.

v1.3.2

Choose a tag to compare

@fabiobrolo fabiobrolo released this 27 Nov 20:30

What's New in v1.3.2

Diagnostics & Troubleshooting

  • Added native Home Assistant Diagnostics (diagnostics.py) with automatic redaction of DDNS/No-IP credentials and masked IP addresses (x.x).
  • Added live Source-Port PBR Routing Check (pbr_routing_check) in Diagnostics comparing default route vs per-WAN source-port probes with an automatic pbr_routing_assessment.
  • Added structured GitHub Issue Templates (bug_report.yml, feature_request.yml) requesting the Diagnostics JSON file and PBR setup details.

New Metrics & Translated Attributes

  • Added Jitter (ms) sensor per WAN measured via a keep-alive latency burst alongside coherent ping_min_ms, ping (average), ping_max_ms, and packet_loss_pct.
  • Added per-sensor metadata attributes (server_sponsor, server_id, server_country, server_distance_km, test_duration_s, last_test_data_mb, bytes_received_mb, bytes_sent_mb, previous_ip, last_ip_change, consecutive_failures, last_online, offline_since).
  • Added full state_attributes translations across en, pt-BR, and pt.

HACS & Hassfest Compliance

  • Added GitHub Actions validation workflow (hacs/action + hassfest) — both passing without ignored checks.
  • Updated manifest.json (speedtest-cli>=2.1.3, strict hassfest key order), hacs.json, icons.json, CONFIG_SCHEMA, and bilingual README.md / README.pt-BR.md.

v1.3.1 - HA 2027.9 Device & Entity Registry Compatibility

Choose a tag to compare

@fabiobrolo fabiobrolo released this 25 Nov 20:38

🐛 Fixes

  • Replaced deprecated device_registry.devices and entity_registry.entities mapping access with dr.async_entries_for_config_entry and er.async_entries_for_config_entry for full Home Assistant 2027.9 compatibility.

v1.3.0 - Platinum Architecture & Reliability Hardening

Choose a tag to compare

@fabiobrolo fabiobrolo released this 05 Nov 14:37

🚀 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).