Files
core/homeassistant/components/smhi/const.py
G Johansson 2cd496fdaf Add coordinator to SMHI (#139052)
* Add coordinator to SMHI

* Remove not needed logging

* docstrings
2025-02-25 19:36:45 +01:00

22 lines
467 B
Python

"""Constants in smhi component."""
from datetime import timedelta
import logging
from typing import Final
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
ATTR_SMHI_THUNDER_PROBABILITY: Final = "thunder_probability"
DOMAIN = "smhi"
HOME_LOCATION_NAME = "Home"
DEFAULT_NAME = "Weather"
ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".smhi_{}"
LOGGER = logging.getLogger(__package__)
DEFAULT_SCAN_INTERVAL = timedelta(minutes=31)
TIMEOUT = 10