Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Tracks devices by sending a ICMP echo request (ping)."""
2 
3 
4 # The ping binary and icmplib timeouts are not the same
5 # timeout. ping is an overall timeout, icmplib is the
6 # time since the data was sent.
7 
8 # ping binary
9 PING_TIMEOUT = 3
10 
11 # icmplib timeout
12 ICMP_TIMEOUT = 1
13 
14 PING_ATTEMPTS_COUNT = 3
15 
16 DOMAIN = "ping"
17 
18 CONF_PING_COUNT = "count"
19 CONF_IMPORTED_BY = "imported_by"
20 DEFAULT_PING_COUNT = 5