Files
core/tests/components/netio/snapshots/test_switch.ambr
T
3d3117f911 Add config flow to Netio using the JSON API (#177043)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2026-08-24 15:36:43 +02:00

102 lines
2.6 KiB
Plaintext

# serializer version: 1
# name: test_entities[switch.powercable_fridge-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.powercable_fridge',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'object_id_base': 'Fridge',
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Fridge',
'platform': 'netio',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '24A42C39F87E_2',
'unit_of_measurement': None,
})
# ---
# name: test_entities[switch.powercable_fridge-state]
StateSnapshot({
'attributes': ReadOnlyDict({
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'PowerCable Fridge',
}),
'context': <ANY>,
'entity_id': 'switch.powercable_fridge',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_entities[switch.powercable_output_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.powercable_output_1',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'object_id_base': 'Output 1',
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Output 1',
'platform': 'netio',
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '24A42C39F87E_1',
'unit_of_measurement': None,
})
# ---
# name: test_entities[switch.powercable_output_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'PowerCable Output 1',
}),
'context': <ANY>,
'entity_id': 'switch.powercable_output_1',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---