mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17: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."""
|
"""Setup the Wunderground sensor."""
|
||||||
rest = WUndergroundData(_RESOURCE,
|
rest = WUndergroundData(_RESOURCE,
|
||||||
config.get(CONF_PWS_ID),
|
config.get(CONF_PWS_ID),
|
||||||
|
if not PLATFORM_SCHEMA(config):
|
||||||
|
return False
|
||||||
|
|
||||||
config.get(CONF_API_KEY),
|
config.get(CONF_API_KEY),
|
||||||
payload)
|
payload)
|
||||||
sensors = []
|
sensors = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user