async def _async_validate_config_and_get_system_information(
    hass: HomeAssistant, data: ConfigType
) -> SystemInformation | None:
    """Validate the user input allows us to connect."""
    if control_config := ControlConfig(hass=hass, entry_id="validate", data=data):
        control_config.check_config()
        return await validate_config_and_get_system_information(control_config=control_config)
    return None
Validate the user input allows us to connect.
custom_components/homematicip_local/config_flow.py