1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 23:53:49 +01:00
Files
core/homeassistant/components/weheat/const.py
Barry vd. Heuvel 1d5e8a9e5a Weheat energy logs update (#163621)
Co-authored-by: Jesper Raemaekers <jesper.raemaekers@wefabricate.com>
2026-02-23 21:00:35 +01:00

29 lines
700 B
Python

"""Constants for the Weheat integration."""
from logging import Logger, getLogger
DOMAIN = "weheat"
MANUFACTURER = "Weheat"
ENTRY_TITLE = "Weheat cloud"
ERROR_DESCRIPTION = "error_description"
OAUTH2_AUTHORIZE = (
"https://auth.weheat.nl/auth/realms/Weheat/protocol/openid-connect/auth/"
)
OAUTH2_TOKEN = (
"https://auth.weheat.nl/auth/realms/Weheat/protocol/openid-connect/token/"
)
API_URL = "https://api.weheat.nl/third_party"
OAUTH2_SCOPES = ["openid", "offline_access"]
LOG_UPDATE_INTERVAL = 120
ENERGY_UPDATE_INTERVAL = 1800
LOGGER: Logger = getLogger(__package__)
DISPLAY_PRECISION_WATTS = 0
DISPLAY_PRECISION_COP = 1
DISPLAY_PRECISION_WATER_TEMP = 1
DISPLAY_PRECISION_FLOW = 1