Skip to content

Commit

Permalink
remove config sections from hass.config.components (#22370)
Browse files Browse the repository at this point in the history
* remove config sections from hass.config.components

* fix tests
  • Loading branch information
uchagani authored and balloob committed Mar 26, 2019
1 parent 42c27e5 commit 0c4380a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion homeassistant/components/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ async def setup_panel(panel_name):
if success:
key = '{}.{}'.format(DOMAIN, panel_name)
hass.bus.async_fire(EVENT_COMPONENT_LOADED, {ATTR_COMPONENT: key})
hass.config.components.add(key)

@callback
def component_loaded(event):
Expand Down
2 changes: 0 additions & 2 deletions tests/components/config/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def test_load_on_demand_already_loaded(hass, aiohttp_client):
yield from async_setup_component(hass, 'config', {})

yield from hass.async_block_till_done()
assert 'config.zwave' in hass.config.components
assert stp.called


Expand All @@ -47,5 +46,4 @@ def test_load_on_demand_on_load(hass, aiohttp_client):
hass.bus.async_fire(EVENT_COMPONENT_LOADED, {ATTR_COMPONENT: 'zwave'})
yield from hass.async_block_till_done()

assert 'config.zwave' in hass.config.components
assert stp.called

0 comments on commit 0c4380a

Please sign in to comment.