Add config entry for Met.no (#24608)

* Add config entry for Met.no

* Fixed tests
This commit is contained in:
Aaron Bach authored and GitHub committed 2019-06-18 17:44:41 -06:00
1 parent f382be4c15
commit a89c8eeabe
9 files changed
+298 -4

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
"""Constants for Met component."""
import logging
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
DOMAIN = 'met'
HOME_LOCATION_NAME = 'Home'
ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".met_{}"
ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format(
HOME_LOCATION_NAME)
_LOGGER = logging.getLogger('.')