mirror of
https://github.com/elisspace/core.git
synced 2026-09-23 19:17:06 +00:00
* SMHI Component * Clean up typos * Fixed default values first config to home location (tests will follow) * Fixed tests and removed unused function * Minor fixup after comments from @kane610 * add support for precipitation in forecast * Removed old async_step_init not needed.
13 lines
403 B
Python
13 lines
403 B
Python
"""Constants in smhi component."""
|
|
import logging
|
|
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
|
|
|
|
HOME_LOCATION_NAME = 'Home'
|
|
|
|
ATTR_SMHI_CLOUDINESS = 'cloudiness'
|
|
DOMAIN = 'smhi'
|
|
LOGGER = logging.getLogger('homeassistant.components.smhi')
|
|
ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".smhi_{}"
|
|
ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format(
|
|
HOME_LOCATION_NAME)
|