async def _validate_and_finish_options_flow(self) -> ConfigFlowResult:
        """Validate and finish the options flow."""

        errors = {}
        description_placeholders = {}

        try:
            system_information = await _async_validate_config_and_get_system_information(self.hass, self.data)
        except AuthFailure:
            errors["base"] = "invalid_auth"
        except InvalidConfig as ic:
            errors["base"] = "invalid_config"
            description_placeholders["invalid_items"] = ic.args[0]
        except BaseHomematicException:
            errors["base"] = "cannot_connect"
        else:
            if system_information is not None:
                self.hass.config_entries.async_update_entry(
                    entry=self.entry,
                    unique_id=system_information.serial,
                    data=self.data,
                )
            return self.async_create_entry(title="", data={})

        return self.async_show_form(
            step_id="central",
            data_schema=get_options_schema(data=self.data),
            errors=errors,
            description_placeholders=description_placeholders,
        )
Validate and finish the options flow.
custom_components/homematicip_local/config_flow.py