|
|
@@ -42,22 +42,22 @@ class TestSimpleBlinds(TuyaDeviceTestCase):
|
|
|
self.dps[POSITION_DPS] = 0
|
|
|
self.assertFalse(self.subject.is_opening)
|
|
|
self.dps[POSITION_DPS] = 50
|
|
|
- self.assertTrue(self.subject.is_opening)
|
|
|
+ self.assertIsNone(self.subject.is_opening)
|
|
|
self.dps[COMMAND_DPS] = "close"
|
|
|
- self.assertFalse(self.subject.is_opening)
|
|
|
+ self.assertIsNone(self.subject.is_opening)
|
|
|
self.dps[COMMAND_DPS] = "stop"
|
|
|
- self.assertFalse(self.subject.is_opening)
|
|
|
+ self.assertIsNone(self.subject.is_opening)
|
|
|
|
|
|
def test_is_closing(self):
|
|
|
self.dps[COMMAND_DPS] = "close"
|
|
|
self.dps[POSITION_DPS] = 100
|
|
|
self.assertFalse(self.subject.is_closing)
|
|
|
self.dps[POSITION_DPS] = 50
|
|
|
- self.assertTrue(self.subject.is_closing)
|
|
|
+ self.assertIsNone(self.subject.is_closing)
|
|
|
self.dps[COMMAND_DPS] = "open"
|
|
|
- self.assertFalse(self.subject.is_closing)
|
|
|
+ self.assertIsNone(self.subject.is_closing)
|
|
|
self.dps[COMMAND_DPS] = "stop"
|
|
|
- self.assertFalse(self.subject.is_closing)
|
|
|
+ self.assertIsNone(self.subject.is_closing)
|
|
|
|
|
|
def test_is_closed(self):
|
|
|
self.dps[COMMAND_DPS] = "close"
|
|
|
@@ -66,7 +66,7 @@ class TestSimpleBlinds(TuyaDeviceTestCase):
|
|
|
self.dps[POSITION_DPS] = 100
|
|
|
self.assertTrue(self.subject.is_closed)
|
|
|
self.dps[COMMAND_DPS] = "stop"
|
|
|
- self.assertIsNone(self.subject.is_closed)
|
|
|
+ self.assertTrue(self.subject.is_closed)
|
|
|
|
|
|
async def test_open_cover(self):
|
|
|
async with assert_device_properties_set(
|