Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nmap_tracker.config_flow Namespace Reference

Classes

class  NmapTrackerConfigFlow
 
class  OptionsFlowHandler
 

Functions

vol.Schema _async_build_schema_with_user_input (HomeAssistant hass, dict[str, Any] user_input, bool include_options)
 
list[str]|None _normalize_ips_and_network (str hosts_str)
 
str async_get_network (HomeAssistant hass)
 
dict[str, str] normalize_input (dict[str, Any] user_input)
 

Variables

int DEFAULT_NETWORK_PREFIX = 24
 
int MAX_CONSIDER_HOME = MAX_SCAN_INTERVAL * 6
 
int MAX_SCAN_INTERVAL = 3600
 

Detailed Description

Config flow for Nmap Tracker integration.

Function Documentation

◆ _async_build_schema_with_user_input()

vol.Schema homeassistant.components.nmap_tracker.config_flow._async_build_schema_with_user_input ( HomeAssistant  hass,
dict[str, Any]  user_input,
bool   include_options 
)
private

Definition at line 107 of file config_flow.py.

◆ _normalize_ips_and_network()

list[str] | None homeassistant.components.nmap_tracker.config_flow._normalize_ips_and_network ( str  hosts_str)
private
Check if a list of hosts are all ips or ip networks.

Definition at line 55 of file config_flow.py.

◆ async_get_network()

str homeassistant.components.nmap_tracker.config_flow.async_get_network ( HomeAssistant  hass)
Search adapters for the network.

Definition at line 41 of file config_flow.py.

◆ normalize_input()

dict[str, str] homeassistant.components.nmap_tracker.config_flow.normalize_input ( dict[str, Any]  user_input)
Validate hosts and exclude are valid.

Definition at line 89 of file config_flow.py.

Variable Documentation

◆ DEFAULT_NETWORK_PREFIX

int homeassistant.components.nmap_tracker.config_flow.DEFAULT_NETWORK_PREFIX = 24

Definition at line 38 of file config_flow.py.

◆ MAX_CONSIDER_HOME

int homeassistant.components.nmap_tracker.config_flow.MAX_CONSIDER_HOME = MAX_SCAN_INTERVAL * 6

Definition at line 37 of file config_flow.py.

◆ MAX_SCAN_INTERVAL

int homeassistant.components.nmap_tracker.config_flow.MAX_SCAN_INTERVAL = 3600

Definition at line 36 of file config_flow.py.