def create_central(self) -> CentralUnit:
        """Create the central unit for ccu callbacks."""
        interface_configs: set[InterfaceConfig] = set()
        for interface_name in self._interface_config:
            interface = self._interface_config[interface_name]
            interface_configs.add(
                InterfaceConfig(
                    central_name=self._instance_name,
                    interface=Interface(interface_name),
                    port=interface.get(CONF_PORT),
                    remote_path=interface.get(CONF_PATH),
                )
            )
        # use last 10 chars of entry_id for central_id uniqueness
        central_id = self._entry_id[-10:]
        return CentralConfig(
            callback_host=self._callback_host if self._callback_host != IP_ANY_V4 else None,
            callback_port=self._callback_port if self._callback_port != PORT_ANY else None,
            central_id=central_id,
            client_session=aiohttp_client.async_get_clientsession(self._hass),
            enable_device_firmware_check=DEFAULT_ENABLE_DEVICE_FIRMWARE_CHECK,
            enable_program_scan=self._enable_program_scan,
            enable_sysvar_scan=self._enable_sysvar_scan,
            listen_ip_addr=IP_ANY_V4 if self._listen_on_all_ip else None,
            default_callback_port=self._default_callback_port,
            host=self._host,
            interface_configs=interface_configs,
            interfaces_requiring_periodic_refresh=() if self._enable_mqtt else INTERFACES_REQUIRING_PERIODIC_REFRESH,
            json_port=self._json_port,
            max_read_workers=1,
            name=self._instance_name,
            password=self._password,
            program_markers=self._program_markers,
            start_direct=self._start_direct,
            storage_folder=get_storage_folder(self._hass),
            sysvar_markers=self._sysvar_markers,
            sys_scan_interval=self._sys_scan_interval,
            tls=self._tls,
            un_ignore_list=self._un_ignore,
            username=self._username,
            verify_tls=self._verify_tls,
        ).create_central()
Create the central unit for ccu callbacks.
custom_components/homematicip_local/control_unit.py