Convert config.components to a set (#5824)
This commit is contained in:
1 parent
f3b9fa2f41
commit
c54517de90
44 files changed
+118
-104
No files matched your search
@@ -13,7 +13,7 @@ class TestMQTT:
|
||||
def setup_method(self, method):
|
||||
"""Setup things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.hass.config.components.append('http')
|
||||
self.hass.config.components.add('http')
|
||||
|
||||
def teardown_method(self, method):
|
||||
"""Stop everything that was started."""
|
||||
@@ -38,7 +38,7 @@ class TestMQTT:
|
||||
|
||||
mock_mqtt.reset_mock()
|
||||
|
||||
self.hass.config.components = ['http']
|
||||
self.hass.config.components = set(['http'])
|
||||
self.hass.config.api = MagicMock(api_password=None)
|
||||
assert setup_component(self.hass, mqtt.DOMAIN, {})
|
||||
assert mock_mqtt.called
|
||||
|
||||
Reference in new issue
Block a user