Fix Panel_IFrame - FTP URL not allowed in 0.63 (#12295)
This commit is contained in:
1 parent
2edebfee0a
commit
64c5d26a84
2 files changed
+16
-1
No files matched your search
@@ -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',
|
||||
}
|
||||
Reference in new issue
Block a user