mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Either validate component config or platform config
This commit is contained in:
parent
8ceab5d4ba
commit
ac28228e6b
@ -106,7 +106,7 @@ def _setup_component(hass, domain, config):
|
|||||||
_LOGGER.error('Invalid config for [%s]: %s', domain, ex)
|
_LOGGER.error('Invalid config for [%s]: %s', domain, ex)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if hasattr(component, 'PLATFORM_SCHEMA'):
|
elif hasattr(component, 'PLATFORM_SCHEMA'):
|
||||||
platforms = []
|
platforms = []
|
||||||
for _, platform in config_per_platform(config, domain):
|
for _, platform in config_per_platform(config, domain):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user