Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """The Ring constants."""
2 
3 from __future__ import annotations
4 
5 from datetime import timedelta
6 from typing import Final
7 
8 from homeassistant.const import Platform
9 
10 ATTRIBUTION = "Data provided by Ring.com"
11 
12 NOTIFICATION_ID = "ring_notification"
13 NOTIFICATION_TITLE = "Ring Setup"
14 
15 DOMAIN = "ring"
16 DEFAULT_ENTITY_NAMESPACE = "ring"
17 
18 PLATFORMS = [
19  Platform.BINARY_SENSOR,
20  Platform.BUTTON,
21  Platform.CAMERA,
22  Platform.EVENT,
23  Platform.LIGHT,
24  Platform.NUMBER,
25  Platform.SENSOR,
26  Platform.SIREN,
27  Platform.SWITCH,
28 ]
29 
30 
31 SCAN_INTERVAL = timedelta(minutes=1)
32 
33 CONF_2FA = "2fa"
34 CONF_LISTEN_CREDENTIALS = "listen_token"
35 
36 CONF_CONFIG_ENTRY_MINOR_VERSION: Final = 3