mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
22 lines
623 B
Python
22 lines
623 B
Python
"""The Nmap Tracker integration."""
|
|
|
|
from typing import Final
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN: Final = "nmap_tracker"
|
|
|
|
PLATFORMS: Final = [Platform.DEVICE_TRACKER]
|
|
|
|
NMAP_TRACKED_DEVICES: Final = "nmap_tracked_devices"
|
|
|
|
# Interval in minutes to exclude devices from a scan while they are home
|
|
CONF_HOME_INTERVAL: Final = "home_interval"
|
|
CONF_OPTIONS: Final = "scan_options"
|
|
CONF_HOSTS_LIST: Final = "hosts_list"
|
|
CONF_HOSTS_EXCLUDE: Final = "hosts_exclude"
|
|
CONF_MAC_EXCLUDE: Final = "mac_exclude"
|
|
DEFAULT_OPTIONS: Final = "-n -sn -PR -T4 --min-rate 10 --host-timeout 5s"
|
|
|
|
TRACKER_SCAN_INTERVAL: Final = 120
|