From 882d4ed7fbd85447d607da90f37f1db7b22cfd4b Mon Sep 17 00:00:00 2001 From: Anthony Zavala <1592039+AnthonyZavala@users.noreply.github.com> Date: Wed, 22 Jul 2026 13:46:28 -0700 Subject: [PATCH] Add Tuya fixture for Chasing Tape Light (hcdd) (#177081) Co-authored-by: Anthony Zavala Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../tuya/fixtures/hcdd_expmpw4xxd0kkifb.json | 91 +++++++++++++++++++ .../components/tuya/snapshots/test_init.ambr | 30 ++++++ 2 files changed, 121 insertions(+) create mode 100644 tests/components/tuya/fixtures/hcdd_expmpw4xxd0kkifb.json diff --git a/tests/components/tuya/fixtures/hcdd_expmpw4xxd0kkifb.json b/tests/components/tuya/fixtures/hcdd_expmpw4xxd0kkifb.json new file mode 100644 index 000000000000..93f35c1f5e33 --- /dev/null +++ b/tests/components/tuya/fixtures/hcdd_expmpw4xxd0kkifb.json @@ -0,0 +1,91 @@ +{ + "name": "Chasing Tape Light", + "category": "hcdd", + "product_id": "expmpw4xxd0kkifb", + "product_name": "Chasing Tape Light", + "online": true, + "sub": false, + "function": { + "switch_led": { + "type": "Boolean", + "value": "{}" + }, + "work_mode": { + "type": "Enum", + "value": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}" + }, + "bright_value": { + "type": "Integer", + "value": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" + }, + "temp_value": { + "type": "Integer", + "value": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}" + }, + "colour_data": { + "type": "String", + "value": "{\"maxlen\":255}" + }, + "countdown": { + "type": "Integer", + "value": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" + }, + "music_data": { + "type": "String", + "value": "{\"maxlen\":255}" + }, + "lightpixel_number_set": { + "type": "Integer", + "value": "{\"min\":1,\"max\":1000,\"scale\":1,\"step\":1}" + } + }, + "status_range": { + "switch_led": { + "type": "Boolean", + "value": "{}" + }, + "work_mode": { + "type": "Enum", + "value": "{\"range\":[\"white\",\"colour\",\"scene\",\"music\"]}" + }, + "bright_value": { + "type": "Integer", + "value": "{\"min\":10,\"max\":1000,\"scale\":0,\"step\":1}" + }, + "temp_value": { + "type": "Integer", + "value": "{\"min\":0,\"max\":1000,\"scale\":0,\"step\":1}" + }, + "colour_data": { + "type": "String", + "value": "{\"maxlen\":255}" + }, + "countdown": { + "type": "Integer", + "value": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}" + }, + "light_length": { + "type": "Integer", + "value": "{\"unit\":\"cm\",\"min\":1,\"max\":10000,\"scale\":0,\"step\":1}" + }, + "light_pixel": { + "type": "Integer", + "value": "{\"min\":1,\"max\":1024,\"scale\":0,\"step\":1}" + }, + "lightpixel_number_set": { + "type": "Integer", + "value": "{\"min\":1,\"max\":1000,\"scale\":1,\"step\":1}" + } + }, + "status": { + "switch_led": true, + "work_mode": "white", + "bright_value": 1000, + "temp_value": 0, + "colour_data": "007803e803e8", + "countdown": 0, + "light_length": 1200, + "light_pixel": 48, + "lightpixel_number_set": 24 + } +} diff --git a/tests/components/tuya/snapshots/test_init.ambr b/tests/components/tuya/snapshots/test_init.ambr index 24cb19fc1863..145718c8fbfd 100644 --- a/tests/components/tuya/snapshots/test_init.ambr +++ b/tests/components/tuya/snapshots/test_init.ambr @@ -2429,6 +2429,36 @@ 'via_device_id': None, }) # --- +# name: test_device_registry[bfikk0dxx4wpmpxeddch] + DeviceRegistryEntrySnapshot({ + 'area_id': None, + 'config_entry_id': , + 'config_subentry_id': , + 'configuration_url': None, + 'connections': set({ + }), + 'disabled_by': None, + 'entry_type': None, + 'hw_version': None, + 'id': , + 'identifiers': set({ + tuple( + 'tuya', + 'bfikk0dxx4wpmpxeddch', + ), + }), + 'labels': set({ + }), + 'manufacturer': 'Tuya', + 'model': 'Chasing Tape Light (unsupported)', + 'model_id': 'expmpw4xxd0kkifb', + 'name': 'Chasing Tape Light', + 'name_by_user': None, + 'serial_number': None, + 'sw_version': None, + 'via_device_id': None, + }) +# --- # name: test_device_registry[bfpewgk8r6fhmissdyzb] DeviceRegistryEntrySnapshot({ 'area_id': None,