From ac28228e6bcf5f7835edb8da52f7b5e30e5ff21d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 29 Mar 2016 22:51:33 -0700 Subject: [PATCH] Either validate component config or platform config --- homeassistant/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index 96ffe47f4fc..2545960dd75 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -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: