mirror of https://github.com/home-assistant/core
518 lines
18 KiB
Plaintext
518 lines
18 KiB
Plaintext
# serializer version: 1
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.block_client_1-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.block_client_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': None,
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'block_client',
|
|
'unique_id': 'block-00:00:00:00:01:01',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.block_client_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'Block Client 1',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.block_client_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'off',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.block_media_streaming-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.block_media_streaming',
|
|
'has_entity_name': False,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': None,
|
|
'original_icon': None,
|
|
'original_name': 'Block Media Streaming',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'dpi_restriction',
|
|
'unique_id': '5f976f4ae3c58f018ec7dff6',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.block_media_streaming-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'friendly_name': 'Block Media Streaming',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.block_media_streaming',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.dummy_usp_pdu_pro_outlet_2-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.dummy_usp_pdu_pro_outlet_2',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'Outlet 2',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'outlet-01:02:03:04:05:ff_2',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.dummy_usp_pdu_pro_outlet_2-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'Dummy USP-PDU-Pro Outlet 2',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.dummy_usp_pdu_pro_outlet_2',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.dummy_usp_pdu_pro_usb_outlet_1-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.dummy_usp_pdu_pro_usb_outlet_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'USB Outlet 1',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'outlet-01:02:03:04:05:ff_1',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.dummy_usp_pdu_pro_usb_outlet_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'Dummy USP-PDU-Pro USB Outlet 1',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.dummy_usp_pdu_pro_usb_outlet_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_1_poe-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.mock_name_port_1_poe',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'Port 1 PoE',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'poe_port_control',
|
|
'unique_id': 'poe-10:00:00:00:01:01_1',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_1_poe-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'mock-name Port 1 PoE',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.mock_name_port_1_poe',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_2_poe-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.mock_name_port_2_poe',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'Port 2 PoE',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'poe_port_control',
|
|
'unique_id': 'poe-10:00:00:00:01:01_2',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_2_poe-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'mock-name Port 2 PoE',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.mock_name_port_2_poe',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_4_poe-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.mock_name_port_4_poe',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'Port 4 PoE',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'poe_port_control',
|
|
'unique_id': 'poe-10:00:00:00:01:01_4',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.mock_name_port_4_poe-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'mock-name Port 4 PoE',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.mock_name_port_4_poe',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.plug_outlet_1-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.plug_outlet_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.OUTLET: 'outlet'>,
|
|
'original_icon': None,
|
|
'original_name': 'Outlet 1',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': None,
|
|
'unique_id': 'outlet-fc:ec:da:76:4f:5f_1',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.plug_outlet_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'outlet',
|
|
'friendly_name': 'Plug Outlet 1',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.plug_outlet_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.ssid_1-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.ssid_1',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': None,
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'wlan_control',
|
|
'unique_id': 'wlan-012345678910111213141516',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.ssid_1-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'SSID 1',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.ssid_1',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.unifi_network_plex-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.unifi_network_plex',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'plex',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'port_forward_control',
|
|
'unique_id': 'port_forward-5a32aa4ee4b0412345678911',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.unifi_network_plex-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'UniFi Network plex',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.unifi_network_plex',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.unifi_network_test_traffic_rule-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.unifi_network_test_traffic_rule',
|
|
'has_entity_name': True,
|
|
'hidden_by': None,
|
|
'icon': None,
|
|
'id': <ANY>,
|
|
'labels': set({
|
|
}),
|
|
'name': None,
|
|
'options': dict({
|
|
}),
|
|
'original_device_class': <SwitchDeviceClass.SWITCH: 'switch'>,
|
|
'original_icon': None,
|
|
'original_name': 'Test Traffic Rule',
|
|
'platform': 'unifi',
|
|
'previous_unique_id': None,
|
|
'supported_features': 0,
|
|
'translation_key': 'traffic_rule_control',
|
|
'unique_id': 'traffic_rule-6452cd9b859d5b11aa002ea1',
|
|
'unit_of_measurement': None,
|
|
})
|
|
# ---
|
|
# name: test_entity_and_device_data[site_payload0-wlan_payload0-traffic_rule_payload0-port_forward_payload0-dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0][switch.unifi_network_test_traffic_rule-state]
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'device_class': 'switch',
|
|
'friendly_name': 'UniFi Network Test Traffic Rule',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'switch.unifi_network_test_traffic_rule',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'on',
|
|
})
|
|
# ---
|