2023-11-17 18:17:16 +00:00
|
|
|
"""The Ring constants."""
|
2024-03-08 14:05:07 +00:00
|
|
|
|
2023-11-17 18:17:16 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
|
|
|
ATTRIBUTION = "Data provided by Ring.com"
|
|
|
|
|
|
|
|
NOTIFICATION_ID = "ring_notification"
|
|
|
|
NOTIFICATION_TITLE = "Ring Setup"
|
|
|
|
|
|
|
|
DOMAIN = "ring"
|
|
|
|
DEFAULT_ENTITY_NAMESPACE = "ring"
|
|
|
|
|
|
|
|
PLATFORMS = [
|
|
|
|
Platform.BINARY_SENSOR,
|
2024-01-16 08:47:53 +00:00
|
|
|
Platform.CAMERA,
|
2023-11-17 18:17:16 +00:00
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SIREN,
|
2024-01-16 08:47:53 +00:00
|
|
|
Platform.SWITCH,
|
2023-11-17 18:17:16 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2024-01-31 09:37:55 +00:00
|
|
|
SCAN_INTERVAL = timedelta(minutes=1)
|
2023-11-17 18:17:16 +00:00
|
|
|
NOTIFICATIONS_SCAN_INTERVAL = timedelta(seconds=5)
|
|
|
|
|
|
|
|
RING_API = "api"
|
|
|
|
RING_DEVICES = "devices"
|
|
|
|
|
|
|
|
RING_DEVICES_COORDINATOR = "device_data"
|
|
|
|
RING_NOTIFICATIONS_COORDINATOR = "dings_data"
|
|
|
|
|
|
|
|
CONF_2FA = "2fa"
|