mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
216 lines
5.4 KiB
Plaintext
216 lines
5.4 KiB
Plaintext
# serializer version: 1
|
|
# name: test_entities[light.bedroom_lamp-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'config_subentry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'light',
|
|
'entity_category': None,
|
|
'entity_id': 'light.bedroom_lamp',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'object_id_base': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': None,
|
|
'original_icon': None,
|
|
'original_name': None,
|
|
'platform': 'cync',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'light',
|
|
'unique_id': '1000-1101',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entities[light.bedroom_lamp-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'brightness': 205,
|
|
'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
'color_temp_kelvin': 2999,
|
|
'friendly_name': 'Bedroom Lamp',
|
|
'hs_color': tuple(
|
|
27.827,
|
|
56.922,
|
|
),
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'rgb_color': tuple(
|
|
255,
|
|
177,
|
|
110,
|
|
),
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
'supported_features': <LightEntityFeature: 0>,
|
|
'xy_color': tuple(
|
|
0.496,
|
|
0.383,
|
|
),
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.bedroom_lamp',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entities[light.lamp_bulb_1-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'config_subentry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'light',
|
|
'entity_category': None,
|
|
'entity_id': 'light.lamp_bulb_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'object_id_base': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': None,
|
|
'original_icon': None,
|
|
'original_name': None,
|
|
'platform': 'cync',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'light',
|
|
'unique_id': '1000-1111',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entities[light.lamp_bulb_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'brightness': None,
|
|
'color_mode': None,
|
|
'color_temp_kelvin': None,
|
|
'friendly_name': 'Lamp Bulb 1',
|
|
'hs_color': None,
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'rgb_color': None,
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
'supported_features': <LightEntityFeature: 0>,
|
|
'xy_color': None,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.lamp_bulb_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'off',
|
|
})
|
|
# ---
|
|
# name: test_entities[light.lamp_bulb_2-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
}),
|
|
'config_entry_id': <ANY>,
|
|
'config_subentry_id': <ANY>,
|
|
'device_class': None,
|
|
'device_id': <ANY>,
|
|
'disabled_by': None,
|
|
'domain': 'light',
|
|
'entity_category': None,
|
|
'entity_id': 'light.lamp_bulb_2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'object_id_base': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': None,
|
|
'original_icon': None,
|
|
'original_name': None,
|
|
'platform': 'cync',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'light',
|
|
'unique_id': '1000-1112',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entities[light.lamp_bulb_2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'friendly_name': 'Lamp Bulb 2',
|
|
'max_color_temp_kelvin': 7000,
|
|
'min_color_temp_kelvin': 2000,
|
|
'supported_color_modes': list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.RGB: 'rgb'>,
|
|
]),
|
|
'supported_features': <LightEntityFeature: 0>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.lamp_bulb_2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'unavailable',
|
|
})
|
|
# ---
|