```suggestion          bright_item = self.tuya_device.function.get(self.dp_code_bright)          if not bright_item:              return 0, 255          bright_value = json.loads(bright_item.values)  ```