prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [Device Support Request] LIVARNO LUX/LIDL Led Panel 60x60 (Tuya TS0502A)
  [LIDL Service website](https://www.lidl-service.com/cps/rde/xchg/SID-3771F4F2-8A18D468/lsp/hs.xsl/product.html?id=5027306530&title=Smart+LED+Light+Panel&count=1)
  
  **Describe the solution you'd like**
  - [x] power control
  - [x] brightness control
  - [x] CCT control
  - [x] remove color control
  
  ![grafik](https://user-images.githubusercontent.com/21227087/101215714-9778fd00-367e-11eb-957c-a1f86d50946e.png)
  
  Maybee because the board is also color capable
  ![IMG_20201204_123040](https://user-images.githubusercontent.com/21227087/101216036-1e2dda00-367f-11eb-9663-c2623fec6553.jpg)
  
  
  **Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.**
  [Device signature and pairing log at my dev VM](https://pastebin.com/ifAkAXaF)
  
  
  **Additional context**
  https://zigbee.blakadder.com/Tuya_TS0502A.html
  Touchlink resetable
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `zhaquirks/lidl/cct.py`
  Content:
  ```
  1 """Quirk for LIDL CCT bulb."""
  2 from zigpy.profiles import zha
  3 from zigpy.quirks import CustomCluster, CustomDevice
  4 from zigpy.zcl.clusters.general import (
  5     Basic,
  6     GreenPowerProxy,
  7     Groups,
  8     Identify,
  9     LevelControl,
  10     OnOff,
  11     Ota,
  12     Scenes,
  13     Time,
  14 )
  15 from zigpy.zcl.clusters.lighting import Color
  16 from zigpy.zcl.clusters.lightlink import LightLink
  17 
  18 from zhaquirks.const import (
  19     DEVICE_TYPE,
  20     ENDPOINTS,
  21     INPUT_CLUSTERS,
  22     MODELS_INFO,
  23     OUTPUT_CLUSTERS,
  24     PROFILE_ID,
  25 )
  26 
  27 
  28 class LidlCCTColorCluster(CustomCluster, Color):
  29     """Lidl CCT Lighting custom cluster."""
  30 
  31     # Remove RGB color wheel for CCT Lighting: only expose color temperature
  32     # LIDL bulbs do not correctly report this attribute (comes back as None in Home Assistant)
  33     _CONSTANT_ATTRIBUTES = {0x400A: 16}
  34 
  35 
  36 class CCTLight(CustomDevice):
  37     """Lidl CCT Lighting device."""
  38 
  39     signature = {
  40         MODELS_INFO: [("_TZ3000_49qchf10", "TS0502A"), ("_TZ3000_oborybow", "TS0502A")],
  41         ENDPOINTS: {
  42             1: {
  43                 # <SimpleDescriptor endpoint=1 profile=260 device_type=268
  44                 # device_version=1
  45                 # input_clusters=[0, 3, 4, 5, 6, 8, 768, 4096]
  46                 # output_clusters=[10, 25]
  47                 PROFILE_ID: zha.PROFILE_ID,
  48                 DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,
  49                 INPUT_CLUSTERS: [
  50                     Basic.cluster_id,
  51                     Identify.cluster_id,
  52                     Groups.cluster_id,
  53                     Scenes.cluster_id,
  54                     OnOff.cluster_id,
  55                     LevelControl.cluster_id,
  56                     Color.cluster_id,
  57                     LightLink.cluster_id,
  58                 ],
  59                 OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
  60             },
  61             242: {
  62                 # <SimpleDescriptor endpoint=242 profile=41440 device_type=97
  63                 # device_version=0
  64                 # input_clusters=[]
  65                 # output_clusters=[33]
  66                 PROFILE_ID: 41440,
  67                 DEVICE_TYPE: 97,
  68                 INPUT_CLUSTERS: [],
  69                 OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
  70             },
  71         },
  72     }
  73 
  74     replacement = {
  75         ENDPOINTS: {
  76             1: {
  77                 PROFILE_ID: zha.PROFILE_ID,
  78                 DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,
  79                 INPUT_CLUSTERS: [
  80                     Basic.cluster_id,
  81                     Identify.cluster_id,
  82                     Groups.cluster_id,
  83                     Scenes.cluster_id,
  84                     OnOff.cluster_id,
  85                     LevelControl.cluster_id,
  86                     LidlCCTColorCluster,
  87                     LightLink.cluster_id,
  88                 ],
  89                 OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],
  90             },
  91             242: {
  92                 PROFILE_ID: 41440,
  93                 DEVICE_TYPE: 97,
  94                 INPUT_CLUSTERS: [],
  95                 OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
  96             },
  97         }
  98     }
  99
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/zhaquirks/lidl/cct.py b/zhaquirks/lidl/cct.py
  --- a/zhaquirks/lidl/cct.py
  +++ b/zhaquirks/lidl/cct.py
  @@ -37,7 +37,12 @@
       """Lidl CCT Lighting device."""
   
       signature = {
  -        MODELS_INFO: [("_TZ3000_49qchf10", "TS0502A"), ("_TZ3000_oborybow", "TS0502A")],
  +        MODELS_INFO: [
  +            ("_TZ3000_49qchf10", "TS0502A"),
  +            ("_TZ3000_oborybow", "TS0502A"),
  +            ("_TZ3000_9evm3otq", "TS0502A"),
  +            ("_TZ3000_rylaozuc", "TS0502A"),
  +        ],
           ENDPOINTS: {
               1: {
                   # <SimpleDescriptor endpoint=1 profile=260 device_type=268
  
verification_info: {"golden_diff": "diff --git a/zhaquirks/lidl/cct.py b/zhaquirks/lidl/cct.py\n--- a/zhaquirks/lidl/cct.py\n+++ b/zhaquirks/lidl/cct.py\n@@ -37,7 +37,12 @@\n     \"\"\"Lidl CCT Lighting device.\"\"\"\n \n     signature = {\n-        MODELS_INFO: [(\"_TZ3000_49qchf10\", \"TS0502A\"), (\"_TZ3000_oborybow\", \"TS0502A\")],\n+        MODELS_INFO: [\n+            (\"_TZ3000_49qchf10\", \"TS0502A\"),\n+            (\"_TZ3000_oborybow\", \"TS0502A\"),\n+            (\"_TZ3000_9evm3otq\", \"TS0502A\"),\n+            (\"_TZ3000_rylaozuc\", \"TS0502A\"),\n+        ],\n         ENDPOINTS: {\n             1: {\n                 # <SimpleDescriptor endpoint=1 profile=260 device_type=268\n", "issue": "[Device Support Request] LIVARNO LUX/LIDL Led Panel 60x60 (Tuya TS0502A)\n[LIDL Service website](https://www.lidl-service.com/cps/rde/xchg/SID-3771F4F2-8A18D468/lsp/hs.xsl/product.html?id=5027306530&title=Smart+LED+Light+Panel&count=1)\r\n\r\n**Describe the solution you'd like**\r\n- [x] power control\r\n- [x] brightness control\r\n- [x] CCT control\r\n- [x] remove color control\r\n\r\n![grafik](https://user-images.githubusercontent.com/21227087/101215714-9778fd00-367e-11eb-957c-a1f86d50946e.png)\r\n\r\nMaybee because the board is also color capable\r\n![IMG_20201204_123040](https://user-images.githubusercontent.com/21227087/101216036-1e2dda00-367f-11eb-9663-c2623fec6553.jpg)\r\n\r\n\r\n**Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.**\r\n[Device signature and pairing log at my dev VM](https://pastebin.com/ifAkAXaF)\r\n\r\n\r\n**Additional context**\r\nhttps://zigbee.blakadder.com/Tuya_TS0502A.html\r\nTouchlink resetable\n", "before_files": [{"content": "\"\"\"Quirk for LIDL CCT bulb.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomCluster, CustomDevice\nfrom zigpy.zcl.clusters.general import (\n    Basic,\n    GreenPowerProxy,\n    Groups,\n    Identify,\n    LevelControl,\n    OnOff,\n    Ota,\n    Scenes,\n    Time,\n)\nfrom zigpy.zcl.clusters.lighting import Color\nfrom zigpy.zcl.clusters.lightlink import LightLink\n\nfrom zhaquirks.const import (\n    DEVICE_TYPE,\n    ENDPOINTS,\n    INPUT_CLUSTERS,\n    MODELS_INFO,\n    OUTPUT_CLUSTERS,\n    PROFILE_ID,\n)\n\n\nclass LidlCCTColorCluster(CustomCluster, Color):\n    \"\"\"Lidl CCT Lighting custom cluster.\"\"\"\n\n    # Remove RGB color wheel for CCT Lighting: only expose color temperature\n    # LIDL bulbs do not correctly report this attribute (comes back as None in Home Assistant)\n    _CONSTANT_ATTRIBUTES = {0x400A: 16}\n\n\nclass CCTLight(CustomDevice):\n    \"\"\"Lidl CCT Lighting device.\"\"\"\n\n    signature = {\n        MODELS_INFO: [(\"_TZ3000_49qchf10\", \"TS0502A\"), (\"_TZ3000_oborybow\", \"TS0502A\")],\n        ENDPOINTS: {\n            1: {\n                # <SimpleDescriptor endpoint=1 profile=260 device_type=268\n                # device_version=1\n                # input_clusters=[0, 3, 4, 5, 6, 8, 768, 4096]\n                # output_clusters=[10, 25]\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],\n            },\n            242: {\n                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97\n                # device_version=0\n                # input_clusters=[]\n                # output_clusters=[33]\n                PROFILE_ID: 41440,\n                DEVICE_TYPE: 97,\n                INPUT_CLUSTERS: [],\n                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],\n            },\n        },\n    }\n\n    replacement = {\n        ENDPOINTS: {\n            1: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    LidlCCTColorCluster,\n                    LightLink.cluster_id,\n                ],\n                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],\n            },\n            242: {\n                PROFILE_ID: 41440,\n                DEVICE_TYPE: 97,\n                INPUT_CLUSTERS: [],\n                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],\n            },\n        }\n    }\n", "path": "zhaquirks/lidl/cct.py"}], "after_files": [{"content": "\"\"\"Quirk for LIDL CCT bulb.\"\"\"\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomCluster, CustomDevice\nfrom zigpy.zcl.clusters.general import (\n    Basic,\n    GreenPowerProxy,\n    Groups,\n    Identify,\n    LevelControl,\n    OnOff,\n    Ota,\n    Scenes,\n    Time,\n)\nfrom zigpy.zcl.clusters.lighting import Color\nfrom zigpy.zcl.clusters.lightlink import LightLink\n\nfrom zhaquirks.const import (\n    DEVICE_TYPE,\n    ENDPOINTS,\n    INPUT_CLUSTERS,\n    MODELS_INFO,\n    OUTPUT_CLUSTERS,\n    PROFILE_ID,\n)\n\n\nclass LidlCCTColorCluster(CustomCluster, Color):\n    \"\"\"Lidl CCT Lighting custom cluster.\"\"\"\n\n    # Remove RGB color wheel for CCT Lighting: only expose color temperature\n    # LIDL bulbs do not correctly report this attribute (comes back as None in Home Assistant)\n    _CONSTANT_ATTRIBUTES = {0x400A: 16}\n\n\nclass CCTLight(CustomDevice):\n    \"\"\"Lidl CCT Lighting device.\"\"\"\n\n    signature = {\n        MODELS_INFO: [\n            (\"_TZ3000_49qchf10\", \"TS0502A\"),\n            (\"_TZ3000_oborybow\", \"TS0502A\"),\n            (\"_TZ3000_9evm3otq\", \"TS0502A\"),\n            (\"_TZ3000_rylaozuc\", \"TS0502A\"),\n        ],\n        ENDPOINTS: {\n            1: {\n                # <SimpleDescriptor endpoint=1 profile=260 device_type=268\n                # device_version=1\n                # input_clusters=[0, 3, 4, 5, 6, 8, 768, 4096]\n                # output_clusters=[10, 25]\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    Color.cluster_id,\n                    LightLink.cluster_id,\n                ],\n                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],\n            },\n            242: {\n                # <SimpleDescriptor endpoint=242 profile=41440 device_type=97\n                # device_version=0\n                # input_clusters=[]\n                # output_clusters=[33]\n                PROFILE_ID: 41440,\n                DEVICE_TYPE: 97,\n                INPUT_CLUSTERS: [],\n                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],\n            },\n        },\n    }\n\n    replacement = {\n        ENDPOINTS: {\n            1: {\n                PROFILE_ID: zha.PROFILE_ID,\n                DEVICE_TYPE: zha.DeviceType.COLOR_TEMPERATURE_LIGHT,\n                INPUT_CLUSTERS: [\n                    Basic.cluster_id,\n                    Identify.cluster_id,\n                    Groups.cluster_id,\n                    Scenes.cluster_id,\n                    OnOff.cluster_id,\n                    LevelControl.cluster_id,\n                    LidlCCTColorCluster,\n                    LightLink.cluster_id,\n                ],\n                OUTPUT_CLUSTERS: [Time.cluster_id, Ota.cluster_id],\n            },\n            242: {\n                PROFILE_ID: 41440,\n                DEVICE_TYPE: 97,\n                INPUT_CLUSTERS: [],\n                OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],\n            },\n        }\n    }\n", "path": "zhaquirks/lidl/cct.py"}]}