Cover (#2957)
* current_position was set, it should be optional * Update mqtt test to match
This commit is contained in:
1 parent
4795122463
commit
e5abf6074c
2 files changed
+8
-6
No files matched your search
@@ -147,7 +147,7 @@ class TestCoverMQTT(unittest.TestCase):
|
||||
|
||||
state_attributes_dict = self.hass.states.get(
|
||||
'cover.test').attributes
|
||||
self.assertTrue('current_position' in state_attributes_dict)
|
||||
self.assertFalse('current_position' in state_attributes_dict)
|
||||
|
||||
fire_mqtt_message(self.hass, 'state-topic', '0')
|
||||
self.hass.pool.block_till_done()
|
||||
|
||||
Reference in new issue
Block a user