def check_config(self) -> None:
        """Check config. Throws BaseHomematicException on failure."""
        if config_failures := check_config(
            central_name=self._instance_name,
            host=self._host,
            username=self._username,
            password=self._password,
            callback_host=self._callback_host,
            callback_port=self._callback_port,
            json_port=self._json_port,
            storage_folder=get_storage_folder(self._hass),
        ):
            failures = ", ".join(config_failures)
            raise InvalidConfig(failures)
Check config. Throws BaseHomematicException on failure.
custom_components/homematicip_local/control_unit.py