mirror of
https://github.com/home-assistant/core.git
synced 2026-06-30 11:16:05 +01:00
e02ea041b7
Co-authored-by: Norbert Rittel <norbert@rittel.de> Co-authored-by: Philippe Lafoucrière <12752+gravis@users.noreply.github.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> Co-authored-by: Robert Resch <robert@resch.dev> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ariel Ebersberger <ariel@ebersberger.io>
43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
"""Constants for opnsense tests."""
|
|
|
|
from homeassistant.components.opnsense.const import (
|
|
CONF_API_SECRET,
|
|
CONF_TRACKER_INTERFACES,
|
|
)
|
|
from homeassistant.const import CONF_API_KEY, CONF_URL, CONF_VERIFY_SSL
|
|
|
|
TITLE = "OPNsense"
|
|
CONFIG_DATA = {
|
|
CONF_URL: "http://router.lan/api",
|
|
CONF_API_KEY: "key",
|
|
CONF_API_SECRET: "secret",
|
|
CONF_VERIFY_SSL: False,
|
|
}
|
|
CONFIG_DATA_IMPORT = {
|
|
CONF_URL: "http://router.lan/api",
|
|
CONF_API_KEY: "key",
|
|
CONF_API_SECRET: "secret",
|
|
CONF_VERIFY_SSL: False,
|
|
CONF_TRACKER_INTERFACES: ["LAN"],
|
|
}
|
|
|
|
ARP = [
|
|
{
|
|
"hostname": "",
|
|
"intf": "igb1",
|
|
"intf_description": "LAN",
|
|
"ip": "192.168.0.123",
|
|
"mac": "ff:ff:ff:ff:ff:ff",
|
|
"manufacturer": "",
|
|
},
|
|
{
|
|
"hostname": "Desktop",
|
|
"intf": "igb1",
|
|
"intf_description": "LAN",
|
|
"ip": "192.168.0.167",
|
|
"mac": "ff:ff:ff:ff:ff:fe",
|
|
"manufacturer": "OEM",
|
|
},
|
|
]
|
|
INTERFACES = {"igb0": {"name": "WAN"}, "igb1": {"name": "LAN"}}
|