mirror of https://github.com/home-assistant/core
132 lines
3.4 KiB
Plaintext
132 lines
3.4 KiB
Plaintext
# serializer version: 1
|
|
# name: test_entry_diagnostics[dpi_group_payload0-dpi_app_payload0-device_payload0-client_payload0-config_entry_options0]
|
|
dict({
|
|
'clients': dict({
|
|
'00:00:00:00:00:00': dict({
|
|
'blocked': False,
|
|
'hostname': 'client_1',
|
|
'ip': '10.0.0.1',
|
|
'is_wired': True,
|
|
'last_seen': 1562600145,
|
|
'mac': '00:00:00:00:00:00',
|
|
'name': 'POE Client 1',
|
|
'oui': 'Producer',
|
|
'sw_mac': '00:00:00:00:00:01',
|
|
'sw_port': 1,
|
|
'wired-rx_bytes': 1234000000,
|
|
'wired-tx_bytes': 5678000000,
|
|
}),
|
|
}),
|
|
'config': dict({
|
|
'data': dict({
|
|
'host': '**REDACTED**',
|
|
'password': '**REDACTED**',
|
|
'port': 1234,
|
|
'site': 'site_id',
|
|
'username': '**REDACTED**',
|
|
'verify_ssl': False,
|
|
}),
|
|
'disabled_by': None,
|
|
'discovery_keys': dict({
|
|
}),
|
|
'domain': 'unifi',
|
|
'entry_id': '1',
|
|
'minor_version': 1,
|
|
'options': dict({
|
|
'allow_bandwidth_sensors': True,
|
|
'allow_uptime_sensors': True,
|
|
'block_client': list([
|
|
'00:00:00:00:00:00',
|
|
]),
|
|
}),
|
|
'pref_disable_new_entities': False,
|
|
'pref_disable_polling': False,
|
|
'source': 'user',
|
|
'title': 'Mock Title',
|
|
'unique_id': '1',
|
|
'version': 1,
|
|
}),
|
|
'devices': dict({
|
|
'00:00:00:00:00:01': dict({
|
|
'board_rev': '1.2.3',
|
|
'device_id': 'mock-id',
|
|
'ethernet_table': list([
|
|
dict({
|
|
'mac': '00:00:00:00:00:02',
|
|
'name': 'eth0',
|
|
'num_port': 2,
|
|
}),
|
|
]),
|
|
'ip': '10.0.1.1',
|
|
'last_seen': 1562600145,
|
|
'mac': '00:00:00:00:00:01',
|
|
'model': 'US16P150',
|
|
'name': 'mock-name',
|
|
'port_overrides': list([
|
|
]),
|
|
'port_table': list([
|
|
dict({
|
|
'mac_table': list([
|
|
dict({
|
|
'age': 1,
|
|
'mac': '00:00:00:00:00:00',
|
|
'static': False,
|
|
'uptime': 3971792,
|
|
'vlan': 1,
|
|
}),
|
|
dict({
|
|
'age': 1,
|
|
'mac': '**REDACTED**',
|
|
'static': True,
|
|
'uptime': 0,
|
|
'vlan': 0,
|
|
}),
|
|
]),
|
|
'media': 'GE',
|
|
'name': 'Port 1',
|
|
'poe_class': 'Class 4',
|
|
'poe_enable': True,
|
|
'poe_mode': 'auto',
|
|
'poe_power': '2.56',
|
|
'poe_voltage': '53.40',
|
|
'port_idx': 1,
|
|
'port_poe': True,
|
|
'portconf_id': '1a1',
|
|
'up': True,
|
|
}),
|
|
]),
|
|
'state': 1,
|
|
'type': 'usw',
|
|
'version': '4.0.42.10433',
|
|
}),
|
|
}),
|
|
'dpi_apps': dict({
|
|
'5f976f62e3c58f018ec7e17d': dict({
|
|
'_id': '5f976f62e3c58f018ec7e17d',
|
|
'apps': list([
|
|
]),
|
|
'blocked': True,
|
|
'cats': list([
|
|
'4',
|
|
]),
|
|
'enabled': True,
|
|
'log': True,
|
|
'site_id': 'name',
|
|
}),
|
|
}),
|
|
'dpi_groups': dict({
|
|
'5f976f4ae3c58f018ec7dff6': dict({
|
|
'_id': '5f976f4ae3c58f018ec7dff6',
|
|
'dpiapp_ids': list([
|
|
'5f976f62e3c58f018ec7e17d',
|
|
]),
|
|
'name': 'Block Media Streaming',
|
|
'site_id': 'name',
|
|
}),
|
|
}),
|
|
'role_is_admin': True,
|
|
'wlans': dict({
|
|
}),
|
|
})
|
|
# ---
|