Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Weheat integration."""
2 
3 from logging import Logger, getLogger
4 
5 DOMAIN = "weheat"
6 MANUFACTURER = "Weheat"
7 ENTRY_TITLE = "Weheat cloud"
8 ERROR_DESCRIPTION = "error_description"
9 
10 OAUTH2_AUTHORIZE = (
11  "https://auth.weheat.nl/auth/realms/Weheat/protocol/openid-connect/auth/"
12 )
13 OAUTH2_TOKEN = (
14  "https://auth.weheat.nl/auth/realms/Weheat/protocol/openid-connect/token/"
15 )
16 API_URL = "https://api.weheat.nl"
17 OAUTH2_SCOPES = ["openid", "offline_access"]
18 
19 
20 UPDATE_INTERVAL = 30
21 
22 LOGGER: Logger = getLogger(__package__)
23 
24 DISPLAY_PRECISION_WATTS = 0
25 DISPLAY_PRECISION_COP = 1
26 DISPLAY_PRECISION_WATER_TEMP = 1