From e36e0b394129714d11b46c182139d6ab5faf06d1 Mon Sep 17 00:00:00 2001 From: Brian Cribbs Date: Tue, 30 May 2017 18:20:14 -0400 Subject: [PATCH] flaking test --- tests/components/cover/test_mqtt.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/components/cover/test_mqtt.py b/tests/components/cover/test_mqtt.py index 7224177c5be..de34fe369cb 100644 --- a/tests/components/cover/test_mqtt.py +++ b/tests/components/cover/test_mqtt.py @@ -274,7 +274,7 @@ class TestCoverMQTT(unittest.TestCase): current_cover_position = self.hass.states.get( 'cover.test').attributes['current_position'] self.assertEqual(22, current_cover_position) - + def test_set_position_templated(self): """Test setting cover position via template.""" self.assertTrue(setup_component(self.hass, cover.DOMAIN, { @@ -318,7 +318,6 @@ class TestCoverMQTT(unittest.TestCase): self.assertEqual(('position-topic', 62, 0, False), self.mock_publish.mock_calls[-2][1]) - def test_no_command_topic(self): """Test with no command topic.""" self.assertTrue(setup_component(self.hass, cover.DOMAIN, { @@ -334,9 +333,6 @@ class TestCoverMQTT(unittest.TestCase): } })) - state_attributes_dict = self.hass.states.get( - 'cover.test').attributes - self.assertEqual(240, self.hass.states.get( 'cover.test').attributes['supported_features']) @@ -356,9 +352,6 @@ class TestCoverMQTT(unittest.TestCase): } })) - state_attributes_dict = self.hass.states.get( - 'cover.test').attributes - self.assertEqual(251, self.hass.states.get( 'cover.test').attributes['supported_features'])