"""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" CONF_RADAR_DURATION = "radar_duration" CONF_RADAR_FPS = "radar_fps" CONF_RADAR_COLORS = "radar_colors" CONF_RADAR_INTERPOLATION = "radar_interpolation" CONF_RADAR_FUTURE_MINUTES = "radar_future_minutes" RADAR_LAYERS = ["rain", "snow", "precip_type"] RADAR_COLOR_OPTIONS = ["8", "14"] SECTION_MAP = "map" SECTION_RADAR = "radar" SECTION_TIME = "time" SECTION_IMAGE = "image" # 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 # 0 means use the full range of images Environment Canada reports as available. DEFAULT_RADAR_DURATION = 0 DEFAULT_RADAR_FPS = 5 # Colour count only affects the rain/snow layers; precip_type always uses the # WMS server's single default style. DEFAULT_RADAR_COLORS = "14" DEFAULT_RADAR_INTERPOLATION = False # 0 means no extrapolation frames are added; only affects rain/snow layers. DEFAULT_RADAR_FUTURE_MINUTES = 0