* Import track_new_devices and scan_interval from yaml for nmap_tracker * Import track_new_devices and scan_interval from yaml for nmap_tracker * Import track_new_devices and scan_interval from yaml for nmap_tracker * tests * translate * tweak * adjust * save indent * pylint * There are two CONF_SCAN_INTERVAL constants * adjust name -- there are TWO CONF_SCAN_INTERVAL constants * remove CONF_SCAN_INTERVAL/CONF_TRACK_NEW from user flow * assert it does not appear in the user step
16 lines
385 B
Python
16 lines
385 B
Python
"""The Nmap Tracker integration."""
|
|
|
|
DOMAIN = "nmap_tracker"
|
|
|
|
PLATFORMS = ["device_tracker"]
|
|
|
|
NMAP_TRACKED_DEVICES = "nmap_tracked_devices"
|
|
|
|
# Interval in minutes to exclude devices from a scan while they are home
|
|
CONF_HOME_INTERVAL = "home_interval"
|
|
CONF_OPTIONS = "scan_options"
|
|
DEFAULT_OPTIONS = "-F --host-timeout 5s"
|
|
|
|
TRACKER_SCAN_INTERVAL = 120
|
|
|
|
DEFAULT_TRACK_NEW_DEVICES = True
|