mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Validate configuration
This commit is contained in:
parent
1a8e17ce41
commit
563154c3c2
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user