code: def toggle_inhibit(self):
          
          if self.inhibit:
              self._controller.set_inhibit(False)
              self.inhibit = False
          else:
              self._controller.set_inhibit(True)
              self.inhibit = True
docs: Enable/disable redshift