2021-04-25 10:10:33 +00:00
|
|
|
"""Constants for the FRITZ!Box Tools integration."""
|
|
|
|
|
2021-09-30 09:18:04 +00:00
|
|
|
from typing import Literal
|
|
|
|
|
2021-12-04 12:26:40 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2021-04-25 10:10:33 +00:00
|
|
|
DOMAIN = "fritz"
|
|
|
|
|
2021-12-04 12:26:40 +00:00
|
|
|
PLATFORMS = [
|
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.DEVICE_TRACKER,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
|
|
|
]
|
2021-04-25 10:10:33 +00:00
|
|
|
|
2021-04-29 18:10:36 +00:00
|
|
|
DATA_FRITZ = "fritz_data"
|
2021-04-25 10:10:33 +00:00
|
|
|
|
2021-09-30 09:18:04 +00:00
|
|
|
DSL_CONNECTION: Literal["dsl"] = "dsl"
|
2021-08-08 09:23:28 +00:00
|
|
|
|
2021-04-25 10:10:33 +00:00
|
|
|
DEFAULT_DEVICE_NAME = "Unknown device"
|
|
|
|
DEFAULT_HOST = "192.168.178.1"
|
|
|
|
DEFAULT_PORT = 49000
|
|
|
|
DEFAULT_USERNAME = ""
|
|
|
|
|
|
|
|
ERROR_AUTH_INVALID = "invalid_auth"
|
2021-05-14 16:46:37 +00:00
|
|
|
ERROR_CANNOT_CONNECT = "cannot_connect"
|
2021-04-25 10:10:33 +00:00
|
|
|
ERROR_UNKNOWN = "unknown_error"
|
|
|
|
|
2021-05-11 20:56:52 +00:00
|
|
|
FRITZ_SERVICES = "fritz_services"
|
|
|
|
SERVICE_REBOOT = "reboot"
|
|
|
|
SERVICE_RECONNECT = "reconnect"
|
2021-10-27 10:01:06 +00:00
|
|
|
SERVICE_CLEANUP = "cleanup"
|
2021-05-11 20:56:52 +00:00
|
|
|
|
2021-06-29 15:57:34 +00:00
|
|
|
SWITCH_TYPE_DEFLECTION = "CallDeflection"
|
|
|
|
SWITCH_TYPE_PORTFORWARD = "PortForward"
|
|
|
|
SWITCH_TYPE_WIFINETWORK = "WiFiNetwork"
|
|
|
|
|
2021-05-07 14:05:16 +00:00
|
|
|
UPTIME_DEVIATION = 5
|