Repository navigation
Releases
Releases · fabiobrolo/multi_wan_speedtest
v1.3.3
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.pyviaasyncio.create_subprocess_exec), leaving Home Assistant'ssocket.create_connectionandthreading.Thread.startcompletely untouched. - Preserved
all_errorssemantics inside the isolated child worker'ssocket.create_connectionbinding (raisingExceptionGroupwhenall_errors=True), and removedthreading.Thread.startwrapping 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 inbrand/are used. - Added clean subprocess lifecycle tracking and termination on unload/timeout/cancellation.
v1.3.2
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 automaticpbr_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 coherentping_min_ms,ping(average),ping_max_ms, andpacket_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_attributestranslations acrossen,pt-BR, andpt.
HACS & Hassfest Compliance
- Added GitHub Actions validation workflow (
hacs/action+hassfest) — both passing without ignored checks. - Updated
manifest.json(speedtest-cli>=2.1.3, stricthassfestkey order),hacs.json,icons.json,CONFIG_SCHEMA, and bilingualREADME.md/README.pt-BR.md.
v1.3.1 - HA 2027.9 Device & Entity Registry Compatibility
🐛 Fixes
- Replaced deprecated
device_registry.devicesandentity_registry.entitiesmapping access withdr.async_entries_for_config_entryander.async_entries_for_config_entryfor full Home Assistant 2027.9 compatibility.
v1.3.0 - Platinum Architecture & Reliability Hardening
🚀 Multi WAN Speedtest & DDNS v1.3.0 — Platinum Architecture & Reliability Hardening
✨ Highlights
- Home Assistant Platinum Architecture (HA 2024.4+ / 2026.x / Python 3.14):
- Strict PEP 695 typing (
type MultiWanConfigEntry = ConfigEntry[MultiWanData]) viaentry.runtime_dataandWanLinkState(TypedDict)inDataUpdateCoordinator[MultiWanRuntimeState]. - Standardized
EntityDescriptiondataclasses (SensorEntityDescription,BinarySensorEntityDescription,ButtonEntityDescription) across all platforms (sensor,binary_sensor,button). - Complete
config_flow.pysupportinguser,options_flow,reconfigure, andreauthflows with port-range overlap validation and translated exception routing (ConfigEntryAuthFailed,ConfigEntryNotReady,ServiceValidationError,UpdateFailed).
- Strict PEP 695 typing (
- Reliability Hardening & Race-Condition Protection:
- Transient Failure Tolerance:
_async_update_datatracks consecutive failures (_consecutive_failures < 3) and preserves the last valid state before raisingUpdateFailed, keeping entities available during brief network blips. - Non-Blocking Action Execution (
mode: restartSafe): Button presses andmulti_wan_speedtest.run_speedtestservice calls schedule speed tests in a debounced background task protected byasyncio.shield(...)and per-WANasyncio.Lock(). - Socket Reuse & Thread Isolation: Immediate
TIME_WAITport reuse viaSO_REUSEADDRandSO_REUSEPORTinside thread-isolated source-port binding.
- Transient Failure Tolerance:
- 100% Dynamic Gateway Discovery (Zero Hardcode):
- Dynamically discovers the gateway router in the Home Assistant Device Registry and links the unified
Multi WAN Speedtestdevice viavia_device_id.
- Dynamically discovers the gateway router in the Home Assistant Device Registry and links the unified
- Complete Localization (i18n), Light/Dark Brand Assets & Bilingual Documentation:
- 100% key parity across
strings.json,translations/en.json,translations/pt-BR.json, andtranslations/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.mdandREADME.pt-BR.mdwith dedicated user/API token prerequisites and tested hardware compatibility matrix (TP-Link ER605 v1.01.3.2 Build 20251030 Rel.16640).
- 100% key parity across