mirror of
https://github.com/home-assistant/core.git
synced 2025-09-01 10:51:47 +02:00
Add Tuya test fixture (#150557)
This commit is contained in:
@@ -21,6 +21,7 @@ DEVICE_MOCKS = [
|
||||
"clkg_nhyj64w2", # https://github.com/home-assistant/core/issues/136055
|
||||
"co2bj_yrr3eiyiacm31ski", # https://github.com/home-assistant/core/issues/133173
|
||||
"cobj_hcdy5zrq3ikzthws", # https://github.com/orgs/home-assistant/discussions/482
|
||||
"cs_ipmyy4nigpqcnd8q", # https://github.com/home-assistant/core/pull/148726
|
||||
"cs_ka2wfrdoogpvgzfi", # https://github.com/home-assistant/core/issues/119865
|
||||
"cs_qhxmvae667uap4zh", # https://github.com/home-assistant/core/issues/141278
|
||||
"cs_vmxuxszzjwp5smli", # https://github.com/home-assistant/core/issues/119865
|
||||
|
40
tests/components/tuya/fixtures/cs_ipmyy4nigpqcnd8q.json
Normal file
40
tests/components/tuya/fixtures/cs_ipmyy4nigpqcnd8q.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "Pro Breeze 30L Compressor Dehumidifier",
|
||||
"category": "cs",
|
||||
"product_id": "ipmyy4nigpqcnd8q",
|
||||
"product_name": "30L Dehumidifier with Max Extraction",
|
||||
"online": true,
|
||||
"function": {
|
||||
"anion": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
}
|
||||
},
|
||||
"status_range": {
|
||||
"anion": {
|
||||
"type": "Boolean",
|
||||
"value": {}
|
||||
},
|
||||
"fault": {
|
||||
"type": "Bitmap",
|
||||
"value": {
|
||||
"label": ["0", "1", "2", "3", "4", "5"]
|
||||
}
|
||||
},
|
||||
"countdown_left": {
|
||||
"type": "Integer",
|
||||
"value": {
|
||||
"unit": "min",
|
||||
"min": 0,
|
||||
"max": 1440,
|
||||
"scale": 0,
|
||||
"step": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"anion": false,
|
||||
"fault": 0,
|
||||
"countdown_left": 0
|
||||
}
|
||||
}
|
@@ -4122,6 +4122,37 @@
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[q8dncqpgin4yympisc]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
'config_entries': <ANY>,
|
||||
'config_entries_subentries': <ANY>,
|
||||
'configuration_url': None,
|
||||
'connections': set({
|
||||
}),
|
||||
'disabled_by': None,
|
||||
'entry_type': None,
|
||||
'hw_version': None,
|
||||
'id': <ANY>,
|
||||
'identifiers': set({
|
||||
tuple(
|
||||
'tuya',
|
||||
'q8dncqpgin4yympisc',
|
||||
),
|
||||
}),
|
||||
'labels': set({
|
||||
}),
|
||||
'manufacturer': 'Tuya',
|
||||
'model': '30L Dehumidifier with Max Extraction',
|
||||
'model_id': 'ipmyy4nigpqcnd8q',
|
||||
'name': 'Pro Breeze 30L Compressor Dehumidifier',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
'serial_number': None,
|
||||
'sw_version': None,
|
||||
'via_device_id': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_device_registry[qi94v9dmdx4fkpncqld]
|
||||
DeviceRegistryEntrySnapshot({
|
||||
'area_id': None,
|
||||
|
@@ -5658,6 +5658,55 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.pro_breeze_30l_compressor_dehumidifier_ionizer-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': None,
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'switch',
|
||||
'entity_category': <EntityCategory.CONFIG: 'config'>,
|
||||
'entity_id': 'switch.pro_breeze_30l_compressor_dehumidifier_ionizer',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
'icon': None,
|
||||
'id': <ANY>,
|
||||
'labels': set({
|
||||
}),
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_icon': 'mdi:atom',
|
||||
'original_name': 'Ionizer',
|
||||
'platform': 'tuya',
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'ionizer',
|
||||
'unique_id': 'tuya.q8dncqpgin4yympiscanion',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.pro_breeze_30l_compressor_dehumidifier_ionizer-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'Pro Breeze 30L Compressor Dehumidifier Ionizer',
|
||||
'icon': 'mdi:atom',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.pro_breeze_30l_compressor_dehumidifier_ionizer',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_platform_setup_and_discovery[switch.qt_switch_switch_1-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
Reference in New Issue
Block a user