code: def set_brightness(self, brightness):
          
          if not 25 <= brightness <= 255:
              raise ValueError("The brightness needs to be between 25 and 255.")
  
          payload = self.generate_payload(SET, {self.DPS_INDEX_BRIGHTNESS: brightness})
          data = self._send_receive(payload)
          return data
docs: Set the brightness value of an rgb bulb.
  
          Args:
              brightness(int): Value for the brightness (25-255).