mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
flaking test
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
Reference in New Issue
Block a user