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 authored and GitHub committed 2019-04-15 16:45:46 -07:00
1 parent 4d080f8b17
commit 6a2da9f9a5
8 files changed
+64 -146

No files matched your search

+5 -1
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):