core/tests/components/tplink/snapshots/test_switch.ambr

406 lines
10 KiB
Plaintext

# serializer version: 1
# name: test_states[my_device-entry]
DeviceRegistryEntrySnapshot({
'area_id': None,
'config_entries': <ANY>,
'configuration_url': None,
'connections': set({
tuple(
'mac',
'aa:bb:cc:dd:ee:ff',
),
}),
'disabled_by': None,
'entry_type': None,
'hw_version': '1.0.0',
'id': <ANY>,
'identifiers': set({
tuple(
'tplink',
'123456789ABCDEFGH',
),
}),
'is_new': False,
'labels': set({
}),
'manufacturer': 'TP-Link',
'model': 'HS100',
'model_id': None,
'name': 'my_device',
'name_by_user': None,
'primary_config_entry': <ANY>,
'serial_number': None,
'suggested_area': None,
'sw_version': '1.0.0',
'via_device_id': None,
})
# ---
# name: test_states[switch.my_device-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': None,
'entity_id': 'switch.my_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': None,
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': None,
'unique_id': '123456789ABCDEFGH',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device',
}),
'context': <ANY>,
'entity_id': 'switch.my_device',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_auto_off_enabled-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_auto_off_enabled',
'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': 'Auto off enabled',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'auto_off_enabled',
'unique_id': '123456789ABCDEFGH_auto_off_enabled',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_auto_off_enabled-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Auto off enabled',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_auto_off_enabled',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_auto_update_enabled-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_auto_update_enabled',
'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': 'Auto update enabled',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'auto_update_enabled',
'unique_id': '123456789ABCDEFGH_auto_update_enabled',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_auto_update_enabled-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Auto update enabled',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_auto_update_enabled',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_child_lock-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_child_lock',
'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': 'Child lock',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'child_lock',
'unique_id': '123456789ABCDEFGH_child_lock',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_child_lock-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Child lock',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_child_lock',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_fan_sleep_mode-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_fan_sleep_mode',
'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': 'Fan sleep mode',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'fan_sleep_mode',
'unique_id': '123456789ABCDEFGH_fan_sleep_mode',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_fan_sleep_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Fan sleep mode',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_fan_sleep_mode',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_states[switch.my_device_led-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_led',
'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': 'LED',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'led',
'unique_id': '123456789ABCDEFGH_led',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_led-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device LED',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_led',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_motion_sensor-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_motion_sensor',
'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': 'Motion sensor',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'pir_enabled',
'unique_id': '123456789ABCDEFGH_pir_enabled',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_motion_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Motion sensor',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_motion_sensor',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_states[switch.my_device_smooth_transitions-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.my_device_smooth_transitions',
'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': 'Smooth transitions',
'platform': 'tplink',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'smooth_transitions',
'unique_id': '123456789ABCDEFGH_smooth_transitions',
'unit_of_measurement': None,
})
# ---
# name: test_states[switch.my_device_smooth_transitions-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'my_device Smooth transitions',
}),
'context': <ANY>,
'entity_id': 'switch.my_device_smooth_transitions',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---