def _change_temperature(self, step):
        """
        Control the change temperature logic for both
        decreasing and increasing.
        """
        # To limit the text displayed from float calcs
        self.temperature = round(self.temperature + step, 2)

        # ensure that temperature stays in the valid bounds
        if self.temperature < self.temperature_lower_lim:
            self.temperature = self.temperature_lower_lim
        elif self.temperature > self.temperature_upper_lim:
            self.temperature = self.temperature_upper_lim

        self.run_redshift()

        Control the change temperature logic for both
        decreasing and increasing.
        
libqtile/widget/redshift.py