* current_position was set, it should be optional

* Update mqtt test to match
This commit is contained in:
John Arild Berentsen authored and GitHub committed 2016-08-24 11:53:02 +02:00
1 parent 4795122463
commit e5abf6074c
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -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()