mirror of
https://github.com/home-assistant/core.git
synced 2026-07-06 22:36:33 +01:00
67740405a8
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
25 lines
748 B
Python
25 lines
748 B
Python
"""Constants for EC component."""
|
|
|
|
ATTR_OBSERVATION_TIME = "observation_time"
|
|
ATTR_STATION = "station"
|
|
CONF_STATION = "station"
|
|
CONF_TITLE = "title"
|
|
DOMAIN = "environment_canada"
|
|
SERVICE_ENVIRONMENT_CANADA_FORECASTS = "get_forecasts"
|
|
|
|
CONF_RADAR_LAYER = "radar_layer"
|
|
CONF_RADAR_LEGEND = "radar_legend"
|
|
CONF_RADAR_TIMESTAMP = "radar_timestamp"
|
|
CONF_RADAR_OPACITY = "radar_opacity"
|
|
CONF_RADAR_RADIUS = "radar_radius"
|
|
|
|
RADAR_LAYERS = ["rain", "snow", "precip_type"]
|
|
|
|
# Defaults preserve the radar behaviour from before the options flow existed:
|
|
# the precipitation-type layer with the legend hidden.
|
|
DEFAULT_RADAR_LAYER = "precip_type"
|
|
DEFAULT_RADAR_LEGEND = False
|
|
DEFAULT_RADAR_TIMESTAMP = True
|
|
DEFAULT_RADAR_OPACITY = 65
|
|
DEFAULT_RADAR_RADIUS = 200
|