core/tests/components/ping/const.py

16 lines
307 B
Python

"""Constants for tests."""
from datetime import timedelta
from icmplib import Host
BINARY_SENSOR_IMPORT_DATA = {
"name": "test2",
"host": "127.0.0.1",
"count": 1,
"scan_interval": 50,
"consider_home": timedelta(seconds=240),
}
NON_AVAILABLE_HOST_PING = Host("192.168.178.1", 10, [])