Don't add a url to built-in panels (#14456)

* Don't add a url to built-in panels

* Add url_path back

* Lint

* Frontend bump to 20180515.0

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-05-15 14:47:46 -04:00
1 parent 2e7b5dcd19
commit df69680d24
5 files changed
+31 -53

No files matched your search

-7
View File
@@ -1,6 +1,5 @@
"""The tests for the panel_iframe component."""
import unittest
from unittest.mock import patch
from homeassistant import setup
from homeassistant.components import frontend
@@ -33,8 +32,6 @@ class TestPanelIframe(unittest.TestCase):
'panel_iframe': conf
})
@patch.dict('hass_frontend_es5.FINGERPRINTS',
{'iframe': 'md5md5'})
def test_correct_config(self):
"""Test correct config."""
assert setup.setup_component(
@@ -70,7 +67,6 @@ class TestPanelIframe(unittest.TestCase):
'config': {'url': 'http://192.168.1.1'},
'icon': 'mdi:network-wireless',
'title': 'Router',
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'router'
}
@@ -79,7 +75,6 @@ class TestPanelIframe(unittest.TestCase):
'config': {'url': 'https://www.wunderground.com/us/ca/san-diego'},
'icon': 'mdi:weather',
'title': 'Weather',
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'weather',
}
@@ -88,7 +83,6 @@ class TestPanelIframe(unittest.TestCase):
'config': {'url': '/api'},
'icon': 'mdi:weather',
'title': 'Api',
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'api',
}
@@ -97,6 +91,5 @@ class TestPanelIframe(unittest.TestCase):
'config': {'url': 'ftp://some/ftp'},
'icon': 'mdi:weather',
'title': 'FTP',
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'ftp',
}