fix: address code review findings from post-onboarding audit
- Add button platform (button.py + PLATFORMS) so oven/washer Start/Pause/Stop controls actually appear in HA - Load DTLS cert chain from memory via _load_pem_chain(); eliminate all temp file writes for key material in config_flow and coordinator - Fix PEM boundary: ensure leaf and CA blocks are separated by a newline in the stored fullchain regardless of whether the user pasted a trailing newline - Dryer mode select: add static options tuple and value_fn to decode Course_XX hex strings back to human names; was permanently empty before - Remove callable branch from LocalThingsSelect (options_field covers dynamic case; callable contract was broken — called with no args vs Callable[[dict]]) - Guard native_min/max_value overrides with hasattr + super() fallback to prevent AttributeError when native_min=None and range_field returns nothing - Add async_close() public method to coordinator; __init__ now calls it instead of reaching in to _close_session directly - Update tests: rename CONF_CERT_PEM/KEY_PEM → CA/LEAF variants, add leaf_cert_pem/leaf_key_pem to mock_probe return, fix mock PEM constants (no trailing newlines, matching what .strip() stores)
This commit is contained in:
1 parent
f25e616950
commit
57cf1cdd11
11 files changed
+176
-120
No files matched your search
@@ -29,5 +29,5 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
unloaded = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||
if unloaded:
|
||||
coordinator: LocalThingsCoordinator = hass.data[DOMAIN].pop(entry.entry_id)
|
||||
await hass.async_add_executor_job(coordinator._close_session)
|
||||
await coordinator.async_close()
|
||||
return unloaded
|
||||
Reference in new issue
Block a user