Fix demo component messing up the config

Could cause HTTP to be initialised in production mode.
pull/680/head
Paulus Schoutsen 2015-12-06 09:08:34 -08:00
parent facbbabe58
commit 03962ab6ae
1 changed files with 3 additions and 2 deletions

View File

@ -53,9 +53,10 @@ def setup(hass, config):
bootstrap.setup_component(hass, 'sun')
# Setup demo platforms
demo_config = config.copy()
for component in COMPONENTS_WITH_DEMO_PLATFORM:
bootstrap.setup_component(
hass, component, {component: {CONF_PLATFORM: 'demo'}})
demo_config[component] = {CONF_PLATFORM: 'demo'}
bootstrap.setup_component(hass, component, demo_config)
# Setup room groups
lights = sorted(hass.states.entity_ids('light'))