update fixtures

pull/135847/head
Teemu Rytilahti 2025-01-17 14:55:39 +01:00
parent 6e53160b12
commit 76aeba0d28
2 changed files with 89 additions and 0 deletions

View File

@ -370,5 +370,15 @@
"value": 10,
"type": "Number",
"category": "Config"
},
"pair": {
"value": "<Action>",
"type": "Action",
"category": "Config"
},
"unpair": {
"value": "<Action>",
"type": "Action",
"category": "Debug"
}
}

View File

@ -1,4 +1,50 @@
# serializer version: 1
# name: test_states[button.my_device_pair_new_device-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'button',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'button.my_device_pair_new_device',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Pair new device',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'pair',
'unique_id': '123456789ABCDEFGH_pair',
'unit_of_measurement': None,
})
# ---
# name: test_states[button.my_device_pair_new_device-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Pair new device',
}),
'context': <ANY>,
'entity_id': 'button.my_device_pair_new_device',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'unknown',
})
# ---
# name: test_states[button.my_device_pan_left-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
@ -308,6 +354,39 @@
'state': 'unknown',
})
# ---
# name: test_states[button.my_device_unpair_device-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': <RegistryEntryDisabler.INTEGRATION: 'integration'>,
'domain': 'button',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_id': 'button.my_device_unpair_device',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Unpair device',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'unpair',
'unique_id': '123456789ABCDEFGH_unpair',
'unit_of_measurement': None,
})
# ---
# name: test_states[my_device-entry]
DeviceRegistryEntrySnapshot({
'area_id': None,