mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
30 lines
614 B
Python
30 lines
614 B
Python
"""Constants for the Uptime Kuma integration."""
|
|
|
|
from pythonkuma import MonitorType
|
|
|
|
DOMAIN = "uptime_kuma"
|
|
|
|
HAS_CERT = {
|
|
MonitorType.HTTP,
|
|
MonitorType.KEYWORD,
|
|
MonitorType.JSON_QUERY,
|
|
}
|
|
HAS_URL = HAS_CERT | {MonitorType.REAL_BROWSER}
|
|
HAS_PORT = {
|
|
MonitorType.PORT,
|
|
MonitorType.STEAM,
|
|
MonitorType.GAMEDIG,
|
|
MonitorType.MQTT,
|
|
MonitorType.RADIUS,
|
|
MonitorType.SNMP,
|
|
MonitorType.SMTP,
|
|
MonitorType.NTP,
|
|
}
|
|
HAS_HOST = HAS_PORT | {
|
|
MonitorType.PING,
|
|
MonitorType.TAILSCALE_PING,
|
|
MonitorType.DNS,
|
|
}
|
|
|
|
LOCAL_INSTANCE = ("127.0.0.1", "localhost", "a0d7b954-uptime-kuma")
|