mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 09:58:07 -04:00
104 lines
2.8 KiB
Plaintext
104 lines
2.8 KiB
Plaintext
# serializer version: 1
|
|
# name: test_switch_entities[switch.vegehub_actuator_1-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'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': None,
|
|
'entity_id': 'switch.vegehub_actuator_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'object_id_base': 'Actuator 1',
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'Actuator 1',
|
|
'platform': 'vegehub',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'switch',
|
|
'unique_id': 'A1B2C3D4E5F6_actuator_0',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_switch_entities[switch.vegehub_actuator_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'switch',
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'VegeHub Actuator 1',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.vegehub_actuator_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_switch_entities[switch.vegehub_actuator_2-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'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': None,
|
|
'entity_id': 'switch.vegehub_actuator_2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'object_id_base': 'Actuator 2',
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'Actuator 2',
|
|
'platform': 'vegehub',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'switch',
|
|
'unique_id': 'A1B2C3D4E5F6_actuator_1',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_switch_entities[switch.vegehub_actuator_2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'switch',
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'VegeHub Actuator 2',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.vegehub_actuator_2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'off',
|
|
})
|
|
# ---
|