Validate configuration

This commit is contained in:
Teagan M. Glenn 2016-08-17 22:28:18 -06:00
parent 1a8e17ce41
commit 563154c3c2

View File

@ -64,6 +64,9 @@ 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
config.get(CONF_API_KEY),
payload)
sensors = []