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:
parent
1e95719436
commit
55d1d3d8ae
13 changed files with 408 additions and 90 deletions
14
homeassistant/components/ipma/const.py
Normal file
14
homeassistant/components/ipma/const.py
Normal 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')
|
Loading…
Add table
Add a link
Reference in a new issue