Fix Panel_IFrame - FTP URL not allowed in 0.63 (#12295)

This commit is contained in:
Rene Nulsch authored and Paulus Schoutsen committed 2018-02-11 09:19:31 -08:00
1 parent 2edebfee0a
commit 64c5d26a84
2 files changed
+16 -1

No files matched your search

+14
View File
@@ -55,6 +55,11 @@ class TestPanelIframe(unittest.TestCase):
'title': 'Api',
'url': '/api',
},
'ftp': {
'icon': 'mdi:weather',
'title': 'FTP',
'url': 'ftp://some/ftp',
},
},
})
@@ -86,3 +91,12 @@ class TestPanelIframe(unittest.TestCase):
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'api',
}
assert panels.get('ftp').to_response(self.hass, None) == {
'component_name': 'iframe',
'config': {'url': 'ftp://some/ftp'},
'icon': 'mdi:weather',
'title': 'FTP',
'url': '/frontend_es5/panels/ha-panel-iframe-md5md5.html',
'url_path': 'ftp',
}