-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconst.py
34 lines (24 loc) · 1.03 KB
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""Constants for the Solcast Solar integration."""
from __future__ import annotations
from typing import Final
from homeassistant.helpers import selector
DOMAIN = "solcast_solar"
SOLCAST_URL = "https://api.solcast.com.au"
ATTR_ENTRY_TYPE: Final = "entry_type"
ENTRY_TYPE_SERVICE: Final = "service"
ATTRIBUTION: Final = "Data retrieved from Solcast"
CUSTOM_HOUR_SENSOR = "customhoursensor"
KEY_ESTIMATE = "key_estimate"
SERVICE_UPDATE = "update_forecasts"
SERVICE_CLEAR_DATA = "clear_all_solcast_data"
SERVICE_QUERY_FORECAST_DATA = "query_forecast_data"
SERVICE_SET_DAMPENING = "set_dampening"
SERVICE_SET_HARD_LIMIT = "set_hard_limit"
SERVICE_REMOVE_HARD_LIMIT = "remove_hard_limit"
#new 4.0.8 - integration config options menu
#new 4.0.15 - integration config options for custom hour (option 3)
CONFIG_OPTIONS = [
selector.SelectOptionDict(value="configure_api", label="option1"),
selector.SelectOptionDict(value="configure_dampening", label="option2"),
selector.SelectOptionDict(value="configure_customsensor", label="option3"),
]