mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix demo component messing up the config
Could cause HTTP to be initialised in production mode.
This commit is contained in:
parent
facbbabe58
commit
03962ab6ae
@ -53,9 +53,10 @@ def setup(hass, config):
|
|||||||
bootstrap.setup_component(hass, 'sun')
|
bootstrap.setup_component(hass, 'sun')
|
||||||
|
|
||||||
# Setup demo platforms
|
# Setup demo platforms
|
||||||
|
demo_config = config.copy()
|
||||||
for component in COMPONENTS_WITH_DEMO_PLATFORM:
|
for component in COMPONENTS_WITH_DEMO_PLATFORM:
|
||||||
bootstrap.setup_component(
|
demo_config[component] = {CONF_PLATFORM: 'demo'}
|
||||||
hass, component, {component: {CONF_PLATFORM: 'demo'}})
|
bootstrap.setup_component(hass, component, demo_config)
|
||||||
|
|
||||||
# Setup room groups
|
# Setup room groups
|
||||||
lights = sorted(hass.states.entity_ids('light'))
|
lights = sorted(hass.states.entity_ids('light'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user