core/homeassistant/components/ping/const.py

21 lines
419 B
Python
Raw Normal View History

"""Tracks devices by sending a ICMP echo request (ping)."""
2022-08-18 08:22:49 +00:00
from homeassistant.const import Platform
# The ping binary and icmplib timeouts are not the same
# timeout. ping is an overall timeout, icmplib is the
# time since the data was sent.
# ping binary
PING_TIMEOUT = 3
# icmplib timeout
ICMP_TIMEOUT = 1
PING_ATTEMPTS_COUNT = 3
DOMAIN = "ping"
2022-08-18 08:22:49 +00:00
PLATFORMS = [Platform.BINARY_SENSOR]
PING_PRIVS = "ping_privs"