mirror of
https://github.com/home-assistant/core.git
synced 2026-10-11 04:19:50 +01:00
216 lines
6.9 KiB
Plaintext
216 lines
6.9 KiB
Plaintext
# serializer version: 1
|
|
# name: test_all_entities[light.living_room_lamp-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
<LightEntityCapabilityAttribute.MAX_COLOR_TEMP_KELVIN: 'max_color_temp_kelvin'>: 6535,
|
|
<LightEntityCapabilityAttribute.MIN_COLOR_TEMP_KELVIN: 'min_color_temp_kelvin'>: 2000,
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.HS: 'hs'>,
|
|
]),
|
|
}),
|
|
'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.living_room_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': 'abode',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': '741385f4388b2637df4c6b398fe50581',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[light.living_room_lamp-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by goabode.com',
|
|
'battery_low': False,
|
|
<LightEntityStateAttribute.BRIGHTNESS: 'brightness'>: 204,
|
|
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: <ColorMode.HS: 'hs'>,
|
|
<LightEntityStateAttribute.COLOR_TEMP_KELVIN: 'color_temp_kelvin'>: None,
|
|
'device_id': 'ZB:db5b1a',
|
|
'device_type': 'RGB Dimmer',
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Lamp',
|
|
<LightEntityStateAttribute.HS_COLOR: 'hs_color'>: tuple(
|
|
225,
|
|
100,
|
|
),
|
|
<LightEntityCapabilityAttribute.MAX_COLOR_TEMP_KELVIN: 'max_color_temp_kelvin'>: 6535,
|
|
<LightEntityCapabilityAttribute.MIN_COLOR_TEMP_KELVIN: 'min_color_temp_kelvin'>: 2000,
|
|
'no_response': False,
|
|
<LightEntityStateAttribute.RGB_COLOR: 'rgb_color'>: tuple(
|
|
0,
|
|
64,
|
|
255,
|
|
),
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.COLOR_TEMP: 'color_temp'>,
|
|
<ColorMode.HS: 'hs'>,
|
|
]),
|
|
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
|
|
<LightEntityStateAttribute.XY_COLOR: 'xy_color'>: tuple(
|
|
0.137,
|
|
0.066,
|
|
),
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.living_room_lamp',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[light.test_dimmer_only_device-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.BRIGHTNESS: 'brightness'>,
|
|
]),
|
|
}),
|
|
'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.test_dimmer_only_device',
|
|
'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': 'abode',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': '641385f4388b2637df4c6b398fe50581',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[light.test_dimmer_only_device-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by goabode.com',
|
|
'battery_low': False,
|
|
<LightEntityStateAttribute.BRIGHTNESS: 'brightness'>: 255,
|
|
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: <ColorMode.BRIGHTNESS: 'brightness'>,
|
|
'device_id': 'ZB:db5b1b',
|
|
'device_type': 'Dimmer',
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Dimmer Only Device',
|
|
'no_response': False,
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.BRIGHTNESS: 'brightness'>,
|
|
]),
|
|
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.test_dimmer_only_device',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_all_entities[light.test_non_dimmer_device-entry]
|
|
EntityRegistryEntrySnapshot({
|
|
'aliases': list([
|
|
None,
|
|
]),
|
|
'area_id': None,
|
|
'capabilities': dict({
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.ONOFF: 'onoff'>,
|
|
]),
|
|
}),
|
|
'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.test_non_dimmer_device',
|
|
'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': 'abode',
|
|
'previous_unique_id': None,
|
|
'suggested_object_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': '641385f4388b2637df4c6b398fe50583',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_all_entities[light.test_non_dimmer_device-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by goabode.com',
|
|
'battery_low': False,
|
|
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: <ColorMode.ONOFF: 'onoff'>,
|
|
'device_id': 'ZB:db5b1c',
|
|
'device_type': 'Light',
|
|
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Non-dimmer Device',
|
|
'no_response': False,
|
|
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
|
|
<ColorMode.ONOFF: 'onoff'>,
|
|
]),
|
|
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'light.test_non_dimmer_device',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|