Convert config.components to a set (#5824)

This commit is contained in:
Paulus Schoutsen authored and Johann Kellerman committed 2017-02-09 20:21:57 +02:00
1 parent f3b9fa2f41
commit c54517de90
44 files changed
+118 -104

No files matched your search

+3 -3
View File
@@ -23,7 +23,7 @@ class TestLockMQTT(unittest.TestCase):
def test_controlling_state_via_topic(self):
"""Test the controlling state via topic."""
self.hass.config.components = ['mqtt']
self.hass.config.components = set(['mqtt'])
assert setup_component(self.hass, lock.DOMAIN, {
lock.DOMAIN: {
'platform': 'mqtt',
@@ -53,7 +53,7 @@ class TestLockMQTT(unittest.TestCase):
def test_sending_mqtt_commands_and_optimistic(self):
"""Test the sending MQTT commands in optimistic mode."""
self.hass.config.components = ['mqtt']
self.hass.config.components = set(['mqtt'])
assert setup_component(self.hass, lock.DOMAIN, {
lock.DOMAIN: {
'platform': 'mqtt',
@@ -87,7 +87,7 @@ class TestLockMQTT(unittest.TestCase):
def test_controlling_state_via_topic_and_json_message(self):
"""Test the controlling state via topic and JSON message."""
self.hass.config.components = ['mqtt']
self.hass.config.components = set(['mqtt'])
assert setup_component(self.hass, lock.DOMAIN, {
lock.DOMAIN: {
'platform': 'mqtt',