207 lines
5.7 KiB
Plaintext
207 lines
5.7 KiB
Plaintext
# serializer version: 1
|
|
# name: test_entity_state
|
|
list([
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'fake-device-1 Panel Light',
|
|
'icon': 'mdi:lightbulb',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.fake_device_1_panel_light',
|
|
'last_changed': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
}),
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'fake-device-1 Quiet',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.fake_device_1_quiet',
|
|
'last_changed': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'off',
|
|
}),
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'fake-device-1 Fresh Air',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.fake_device_1_fresh_air',
|
|
'last_changed': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
}),
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'fake-device-1 XFan',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.fake_device_1_xfan',
|
|
'last_changed': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
}),
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'fake-device-1 Health mode',
|
|
'icon': 'mdi:pine-tree',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.fake_device_1_health_mode',
|
|
'last_changed': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
}),
|
|
])
|
|
# ---
|
|
# name: test_registry_settings
|
|
list([
|
|
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.fake_device_1_panel_light',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': 'mdi:lightbulb',
|
|
'original_name': 'fake-device-1 Panel Light',
|
|
'platform': 'gree',
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'aabbcc112233_Panel Light',
|
|
'unit_of_measurement': None,
|
|
}),
|
|
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.fake_device_1_quiet',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'fake-device-1 Quiet',
|
|
'platform': 'gree',
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'aabbcc112233_Quiet',
|
|
'unit_of_measurement': None,
|
|
}),
|
|
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.fake_device_1_fresh_air',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'fake-device-1 Fresh Air',
|
|
'platform': 'gree',
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'aabbcc112233_Fresh Air',
|
|
'unit_of_measurement': None,
|
|
}),
|
|
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.fake_device_1_xfan',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'fake-device-1 XFan',
|
|
'platform': 'gree',
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'aabbcc112233_XFan',
|
|
'unit_of_measurement': None,
|
|
}),
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': set({
|
|
}),
|
|
'area_id': None,
|
|
'capabilities': None,
|
|
'config_entry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': <RegistryEntryDisabler.INTEGRATION: 'integration'>,
|
|
'domain': 'switch',
|
|
'entity_category': None,
|
|
'entity_id': 'switch.fake_device_1_health_mode',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': 'mdi:pine-tree',
|
|
'original_name': 'fake-device-1 Health mode',
|
|
'platform': 'gree',
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'aabbcc112233_Health mode',
|
|
'unit_of_measurement': None,
|
|
}),
|
|
])
|
|
# ---
|