core/homeassistant/components/smhi/const.py

15 lines
390 B
Python
Raw Normal View History

"""Constants in smhi component."""
2021-05-15 19:38:12 +00:00
from typing import Final
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
2021-05-15 19:38:12 +00:00
ATTR_SMHI_CLOUDINESS: Final = "cloudiness"
ATTR_SMHI_WIND_GUST_SPEED: Final = "wind_gust_speed"
ATTR_SMHI_THUNDER_PROBABILITY: Final = "thunder_probability"
2019-07-31 19:25:30 +00:00
DOMAIN = "smhi"
2019-07-31 19:25:30 +00:00
HOME_LOCATION_NAME = "Home"
ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".smhi_{}"