core/homeassistant/components/smhi/const.py

16 lines
382 B
Python
Raw Normal View History

"""Constants in smhi component."""
import logging
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
2019-07-31 19:25:30 +00:00
ATTR_SMHI_CLOUDINESS = "cloudiness"
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_{}"
2019-07-31 19:25:30 +00:00
ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format(HOME_LOCATION_NAME)
LOGGER = logging.getLogger(__package__)