def METHOD_NAME(self):
    self.level_channel = self.get_channel_object("light_level")
    self.state_channel = self.get_channel_object("state")
    threshold = self.get_property("off_threshold")
    if threshold is not None:
        try:
            self.off_threshold = float(threshold)
        except Exception:
            self.off_threshold = self.default_threshold
            logging.getLogger("HWR").info(
                "OFF Threshold for front light is not valid. Using %s"
                % self.off_threshold
            )
    limits = self.get_property("limits")
    if limits is not None:
        lims = limits.split(",")
        if len(lims) == 2:
            self.limits = map(float, lims)
    self.level_channel.connect_signal("update", self.level_changed)
    self.state_channel.connect_signal("update", self.register_state_changed)