mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 20:57:51 +00:00

* removes old profile switches and add new switches based on new method * use Ellipsis instead of pass * refactor async_add_profile_switches * - add forgotten update_ha_state - add notimplemtederror for devicebase * Update homeassistant/components/fritz/common.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update homeassistant/components/fritz/common.py Co-authored-by: J. Nick Koston <nick@koston.org> * comments * fix for devices that were not connected * Update homeassistant/components/fritz/common.py Co-authored-by: J. Nick Koston <nick@koston.org> * Update homeassistant/components/fritz/switch.py Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@koston.org>
29 lines
656 B
Python
29 lines
656 B
Python
"""Constants for the FRITZ!Box Tools integration."""
|
|
|
|
DOMAIN = "fritz"
|
|
|
|
PLATFORMS = ["binary_sensor", "device_tracker", "sensor", "switch"]
|
|
|
|
DATA_FRITZ = "fritz_data"
|
|
|
|
DEFAULT_DEVICE_NAME = "Unknown device"
|
|
DEFAULT_HOST = "192.168.178.1"
|
|
DEFAULT_PORT = 49000
|
|
DEFAULT_USERNAME = ""
|
|
|
|
ERROR_AUTH_INVALID = "invalid_auth"
|
|
ERROR_CANNOT_CONNECT = "cannot_connect"
|
|
ERROR_UNKNOWN = "unknown_error"
|
|
|
|
FRITZ_SERVICES = "fritz_services"
|
|
SERVICE_REBOOT = "reboot"
|
|
SERVICE_RECONNECT = "reconnect"
|
|
|
|
SWITCH_TYPE_DEFLECTION = "CallDeflection"
|
|
SWITCH_TYPE_PORTFORWARD = "PortForward"
|
|
SWITCH_TYPE_WIFINETWORK = "WiFiNetwork"
|
|
|
|
TRACKER_SCAN_INTERVAL = 30
|
|
|
|
UPTIME_DEVIATION = 5
|