* Added additional sensor to Weheat * Added tests for old and new sensors * Added energy sensor * Changed tests to use snapshot * Removed unused value and regenerated the ambr * Apply suggestions from code review Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * changed DHW sensor creation * Wrapped lambda function --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
26 lines
626 B
Python
26 lines
626 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"
|
|
OAUTH2_SCOPES = ["openid", "offline_access"]
|
|
|
|
|
|
UPDATE_INTERVAL = 30
|
|
|
|
LOGGER: Logger = getLogger(__package__)
|
|
|
|
DISPLAY_PRECISION_WATTS = 0
|
|
DISPLAY_PRECISION_COP = 1
|
|
DISPLAY_PRECISION_WATER_TEMP = 1
|