def METHOD_NAME(self):
    targetPower = cockpit.util.userConfig.getValue(self.name + '-lightPower', default = 0.01)
    try:
        self.setPower(targetPower)
    except Exception as e:
        cockpit.util.logger.log.warning("Failed to set prior power level %s for %s: %s" % (targetPower, self.name, e))