def METHOD_NAME(self, duration: int) -> None:
    with SingleComponentUpdateContext(self.component_info, False):
        with self.__client_error_context:
            ip_address = self.config.configuration.ip_address
            if (self.config.configuration.duo_num == 1):
                pub.pub_single("openWB/set/internal_chargepoint/1/data/cp_interruption_duration",
                               duration, hostname=ip_address)
                pub.pub_single("openWB/set/isss/Cpulp2", duration, hostname=ip_address)
            else:
                pub.pub_single("openWB/set/internal_chargepoint/0/data/cp_interruption_duration",
                               duration, hostname=ip_address)
                pub.pub_single("openWB/set/isss/Cpulp1", duration, hostname=ip_address)
            time.sleep(duration)