2018-10-08 21:54:55 +00:00
|
|
|
"""Constants in smhi component."""
|
|
|
|
import logging
|
|
|
|
|
2018-11-13 09:01:14 +00:00
|
|
|
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
|
2018-10-08 21:54:55 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_SMHI_CLOUDINESS = "cloudiness"
|
2018-11-13 09:01:14 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "smhi"
|
2018-11-13 09:01:14 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
HOME_LOCATION_NAME = "Home"
|
2018-11-13 09:01:14 +00:00
|
|
|
|
2018-10-08 21:54:55 +00:00
|
|
|
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)
|
2018-11-13 09:01:14 +00:00
|
|
|
|
2019-05-07 22:52:49 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|