1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add config entry for IQVIA (#23765)

* Add config entry for IQVIA

* Updated tests and requirements

* Removed unnecessary dependency

* Fixed tests

* Reverted unintended change
This commit is contained in:
Aaron Bach
2019-05-09 10:11:51 -06:00
committed by Paulus Schoutsen
parent 4004867eda
commit 45adb5c9c7
11 changed files with 258 additions and 17 deletions

View File

@@ -54,8 +54,13 @@ TREND_SUBSIDING = 'Subsiding'
async def async_setup_platform(
hass, config, async_add_entities, discovery_info=None):
"""Configure the platform and add the sensors."""
iqvia = hass.data[DOMAIN][DATA_CLIENT]
"""Set up IQVIA sensors based on the old way."""
pass
async def async_setup_entry(hass, entry, async_add_entities):
"""Set up IQVIA sensors based on a config entry."""
iqvia = hass.data[DOMAIN][DATA_CLIENT][entry.entry_id]
sensor_class_mapping = {
TYPE_ALLERGY_FORECAST: ForecastSensor,