diff --git a/tests/test_config_flow_ux.py b/tests/test_config_flow_ux.py index 1c6876e..e6011a6 100644 --- a/tests/test_config_flow_ux.py +++ b/tests/test_config_flow_ux.py @@ -960,6 +960,15 @@ class TestProtocolReconfigure: assert hass.config_entries.reloaded_entry_ids == ["e1"] assert client.finished_codes == [FAKE_PAIRING_CODE] + # ...and the reloaded entry can really build the transport again: the + # settings point at the paired certificate + the address just paired, + # which is exactly what was impossible before reconfigure existed. + init = _integration_module() + settings = await init._build_protocol_settings(hass, entry) + assert settings is not None + assert settings["host"] == "10.0.0.9" + assert settings["certfile"].endswith("client.pem") + async def test_reconfigure_host_correction_reopens_the_pin_step( self, tmp_path, monkeypatch ):