2021-11-30 18:53:41 +00:00
|
|
|
"""Adds constants for Trafikverket Weather integration."""
|
2021-12-04 13:10:01 +00:00
|
|
|
from homeassistant.const import Platform
|
2021-11-30 18:53:41 +00:00
|
|
|
|
|
|
|
DOMAIN = "trafikverket_weatherstation"
|
|
|
|
CONF_STATION = "station"
|
2021-12-04 13:10:01 +00:00
|
|
|
PLATFORMS = [Platform.SENSOR]
|
2021-11-30 18:53:41 +00:00
|
|
|
ATTRIBUTION = "Data provided by Trafikverket"
|
2022-01-06 15:33:06 +00:00
|
|
|
|
|
|
|
NONE_IS_ZERO_SENSORS = {
|
|
|
|
"air_temp",
|
|
|
|
"road_temp",
|
|
|
|
"wind_direction",
|
|
|
|
"wind_speed",
|
|
|
|
"wind_speed_max",
|
|
|
|
"humidity",
|
|
|
|
"precipitation_amount",
|
|
|
|
}
|