Move weather.ipma into a component (#20706)

* initial version

* works

* lint

* move

* hound

* fix formatting

* update

* add extra features

* houmd

* docstring

* fix tests

* lint

* update requirements_all.txt

* new tests

* lint

* update CODEOWNERS

* MockDependency pyipma

* hound

* bump pyipma version

* add config_flow tests

* lint

* improve test coverage

* fix test

* address comments by @MartinHjelmare

* remove device_info

* hound

* stale comment

* Add deprecation warning

* address comments

* lint
This commit is contained in:
Diogo Gomes 2019-02-08 09:55:58 +00:00 committed by Martin Hjelmare
parent 1e95719436
commit 55d1d3d8ae
13 changed files with 408 additions and 90 deletions

View file

@ -0,0 +1,14 @@
"""Constants in ipma component."""
import logging
from homeassistant.components.weather import DOMAIN as WEATHER_DOMAIN
DOMAIN = 'ipma'
HOME_LOCATION_NAME = 'Home'
ENTITY_ID_SENSOR_FORMAT = WEATHER_DOMAIN + ".ipma_{}"
ENTITY_ID_SENSOR_FORMAT_HOME = ENTITY_ID_SENSOR_FORMAT.format(
HOME_LOCATION_NAME)
_LOGGER = logging.getLogger('homeassistant.components.ipma')