From 62b00e1294a2bd8f8f9fda0194cbcb6c88cd7861 Mon Sep 17 00:00:00 2001 From: "Teagan M. Glenn" Date: Wed, 17 Aug 2016 22:29:00 -0600 Subject: [PATCH] Update invocation of WUndergroundData --- homeassistant/components/sensor/wunderground.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/wunderground.py b/homeassistant/components/sensor/wunderground.py index 0eb9f4bd5a8..83457adc06f 100644 --- a/homeassistant/components/sensor/wunderground.py +++ b/homeassistant/components/sensor/wunderground.py @@ -62,13 +62,12 @@ PLATFORM_SCHEMA = vol.Schema({ def setup_platform(hass, config, add_devices, discovery_info=None): """Setup the Wunderground sensor.""" - rest = WUndergroundData(_RESOURCE, - config.get(CONF_PWS_ID), if not PLATFORM_SCHEMA(config): return False + rest = WUndergroundData(hass, config.get(CONF_API_KEY), - payload) + config.get(CONF_PWS_ID, None)) sensors = [] for variable in config['monitored_conditions']: if variable in SENSOR_TYPES: