Fix config error for FTP links, add test (#12294)
This commit is contained in:
1 parent
b1c0cabe6c
commit
2edebfee0a
2 files changed
+15
-1
No files matched your search
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user