Releases: donserdal/ha-windows-shutdown
Release list
v1.2.4
Overzicht van alle wijzigingen:
init.py — volledig herschreven:
async_setup + CONFIG_SCHEMA verwijderd (niet nodig zonder YAML-config)
Services verplaatst naar async_setup_entry met has_service guard → gold: action-setup
Services opgeruimd in async_unload_entry wanneer laatste entry wordt verwijderd
vol.Schema validatie op beide services (delay range 0-3600, shutdown_type in lijst)
_get_targets helper om duplicatie tussen de twee handlers te elimineren
coordinator.py:
ConfigEntryAuthFailed gebruikt nu translation_key="auth_failed"
device_info property toegevoegd (één centrale bron voor DeviceInfo)
async_notify heeft nu dezelfde state guard als async_send_shutdown
DEVICE_MANUFACTURER, DEVICE_MODEL geïmporteerd vanuit const
button.py + binary_sensor.py:
DeviceInfo aanmaak vervangen door coordinator.device_info
Dode imports verwijderd (CONF_HOST, CONF_PORT, DeviceInfo, DEVICE_MANUFACTURER, etc.)
HomeAssistantError in async_press gebruikt nu translation_key="press_failed"
strings.json / translations — nieuwe exceptions: auth_failed, press_failed
Full Changelog: v1.2.3...v1.2.4
v1.2.3
v1.2.0
[1.2.0] — 2026-04-11
Added
- Reauthentication flow: renew the API key via the UI without reinstalling the integration
- Diagnostics: downloadable debug information for troubleshooting
- Reconfigure flow: adjust delay and action type via the Configure button
- mDNS scan is now thread-safe via
threading.Lock - Port range validation (1–65535) for manual entry
PARALLEL_UPDATES = 1on both platformsConfigEntryState.LOADEDcheck for service calls
Changed
- Service registration now uses the modern
runtime_dataapproach - HTTP logic centralized in a single
_async_requesthelper - API key is now private (
self._api_key) SHUTDOWN_TYPESchanged fromlisttotuple- JSON parse error refined to
JSONDecodeError - Button is greyed out when the PC is offline
Fixed
async_get_options_flowwas in the wrong class- Duplicate definition of
CONF_API_KEYinconst.py - Port number used string literal
'port'instead ofCONF_PORT - CRLF line endings in
services.yaml