1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

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:
Paulus Schoutsen
2017-10-24 19:36:27 -07:00
committed by GitHub
parent 29fb65b224
commit 2bdad5388b
169 changed files with 372 additions and 5396 deletions

View File

@@ -33,8 +33,8 @@ class TestPanelIframe(unittest.TestCase):
'panel_iframe': conf
})
@patch.dict('homeassistant.components.frontend.FINGERPRINTS', {
'panels/ha-panel-iframe.html': 'md5md5'})
@patch.dict('hass_frontend.FINGERPRINTS',
{'panels/ha-panel-iframe.html': 'md5md5'})
def test_correct_config(self):
"""Test correct config."""
assert setup.setup_component(
@@ -53,20 +53,22 @@ class TestPanelIframe(unittest.TestCase):
},
})
assert self.hass.data[frontend.DATA_PANELS].get('router') == {
panels = self.hass.data[frontend.DATA_PANELS]
assert panels.get('router').as_dict() == {
'component_name': 'iframe',
'config': {'url': 'http://192.168.1.1'},
'icon': 'mdi:network-wireless',
'title': 'Router',
'url': '/frontend/panels/iframe-md5md5.html',
'url': '/static/panels/ha-panel-iframe-md5md5.html',
'url_path': 'router'
}
assert self.hass.data[frontend.DATA_PANELS].get('weather') == {
assert panels.get('weather').as_dict() == {
'component_name': 'iframe',
'config': {'url': 'https://www.wunderground.com/us/ca/san-diego'},
'icon': 'mdi:weather',
'title': 'Weather',
'url': '/frontend/panels/iframe-md5md5.html',
'url': '/static/panels/ha-panel-iframe-md5md5.html',
'url_path': 'weather',
}