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

+2 -2
View File
@@ -22,7 +22,7 @@ class TestSensorMQTT(unittest.TestCase):
def test_setting_sensor_value_via_mqtt_message(self):
"""Test the setting of the value via MQTT."""
self.hass.config.components = ['mqtt']
self.hass.config.components = set(['mqtt'])
assert setup_component(self.hass, sensor.DOMAIN, {
sensor.DOMAIN: {
'platform': 'mqtt',
@@ -42,7 +42,7 @@ class TestSensorMQTT(unittest.TestCase):
def test_setting_sensor_value_via_mqtt_json_message(self):
"""Test the setting of the value via MQTT with JSON playload."""
self.hass.config.components = ['mqtt']
self.hass.config.components = set(['mqtt'])
assert setup_component(self.hass, sensor.DOMAIN, {
sensor.DOMAIN: {
'platform': 'mqtt',
+1 -1
View File
@@ -23,7 +23,7 @@ def setup_function():
global HASS
HASS = get_test_home_assistant()
HASS.config.components = ['pilight']
HASS.config.components = set(['pilight'])
# pylint: disable=invalid-name
+1 -1
View File
@@ -17,7 +17,7 @@ class TestSensorRfxtrx(unittest.TestCase):
def setUp(self):
"""Setup things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.hass.config.components = ['rfxtrx']
self.hass.config.components = set(['rfxtrx'])
def tearDown(self):
"""Stop everything that was started."""