Consolidate frontend (#9915)
* Consolidate frontend * Remove home-assistant-polymer submodule * Convert to using a pypi package for frontend * fix release script * Lint * Remove unused file * Remove frontend related scripts * Move hass_frontend to frontend REQUIREMENTS * Fix tests * lint * Address comments * Lint + fix tests in py34 * Fix py34 tests again * fix typo
This commit is contained in:
parent
29fb65b224
commit
2bdad5388b
169 changed files with 372 additions and 5396 deletions
|
@ -288,8 +288,8 @@ def test_get_config(hass, websocket_client):
|
|||
@asyncio.coroutine
|
||||
def test_get_panels(hass, websocket_client):
|
||||
"""Test get_panels command."""
|
||||
frontend.register_built_in_panel(hass, 'map', 'Map',
|
||||
'mdi:account-location')
|
||||
yield from hass.components.frontend.async_register_built_in_panel(
|
||||
'map', 'Map', 'mdi:account-location')
|
||||
|
||||
websocket_client.send_json({
|
||||
'id': 5,
|
||||
|
@ -300,7 +300,8 @@ def test_get_panels(hass, websocket_client):
|
|||
assert msg['id'] == 5
|
||||
assert msg['type'] == wapi.TYPE_RESULT
|
||||
assert msg['success']
|
||||
assert msg['result'] == hass.data[frontend.DATA_PANELS]
|
||||
assert msg['result'] == {url: panel.as_dict() for url, panel
|
||||
in hass.data[frontend.DATA_PANELS].items()}
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue