Either validate component config or platform config

pull/1633/head
Paulus Schoutsen 2016-03-29 22:51:33 -07:00
parent 8ceab5d4ba
commit ac28228e6b
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def _setup_component(hass, domain, config):
_LOGGER.error('Invalid config for [%s]: %s', domain, ex)
return False
if hasattr(component, 'PLATFORM_SCHEMA'):
elif hasattr(component, 'PLATFORM_SCHEMA'):
platforms = []
for _, platform in config_per_platform(config, domain):
try: