async def test_form_tls(hass: HomeAssistant) -> None:
    """Test we get the form with tls."""
    interface_data = {CONF_ENABLE_HMIP_RF: True}
    data = await async_check_form(hass=hass, interface_data=interface_data, tls=True)
    interface = data[CONF_INTERFACE]
    assert interface[Interface.HMIP_RF][CONF_PORT] == 42010
    assert interface.get(Interface.BIDCOS_RF) is None
    assert interface.get(Interface.VIRTUAL_DEVICES) is None
    assert interface.get(Interface.BIDCOS_WIRED) is None
Test we get the form with tls.
tests/test_config_flow.py