Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """The Nmap Tracker integration."""
2 
3 from typing import Final
4 
5 from homeassistant.const import Platform
6 
7 DOMAIN: Final = "nmap_tracker"
8 
9 PLATFORMS: Final = [Platform.DEVICE_TRACKER]
10 
11 NMAP_TRACKED_DEVICES: Final = "nmap_tracked_devices"
12 
13 # Interval in minutes to exclude devices from a scan while they are home
14 CONF_HOME_INTERVAL: Final = "home_interval"
15 CONF_OPTIONS: Final = "scan_options"
16 DEFAULT_OPTIONS: Final = "-F -T4 --min-rate 10 --host-timeout 5s"
17 
18 TRACKER_SCAN_INTERVAL: Final = 120