Fix config error for FTP links, add test (#12294)

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

No files matched your search

+13
View File
@@ -91,6 +91,19 @@ class TestComponentWeblink(unittest.TestCase):
}
}))
def test_good_config_ftp_link(self):
"""Test if new entity is created."""
self.assertTrue(setup_component(self.hass, 'weblink', {
'weblink': {
'entities': [
{
weblink.CONF_NAME: 'My FTP URL',
weblink.CONF_URL: 'ftp://somehost/'
},
],
}
}))
def test_entities_get_created(self):
"""Test if new entity is created."""
self.assertTrue(setup_component(self.hass, weblink.DOMAIN, {