load cleanups (#23112)

* load cleanups

* Remove unused methods

* Allow importing requirements at the top of a file

* Fix test

* Lint

* Install reqs ASAP when loading platforms
This commit is contained in:
Paulus Schoutsen
2019-04-15 16:45:46 -07:00
committed by GitHub
parent 4d080f8b17
commit 6a2da9f9a5
8 changed files with 64 additions and 146 deletions

View File

@@ -25,7 +25,11 @@ async def test_webcomponent_custom_path_not_found(hass):
hass, 'panel_custom', config
)
assert not result
assert len(hass.data.get(frontend.DATA_PANELS, {})) == 0
panels = hass.data.get(frontend.DATA_PANELS, [])
assert panels
assert 'nice_url' not in panels
async def test_webcomponent_custom_path(hass):