Browse Source

simple_switch_with_timerv2: update for recent new entity

Jason Rumney 3 năm trước cách đây
mục cha
commit
8a1dd024a2

+ 1 - 1
tests/devices/test_simple_switch_with_timerv2.py

@@ -25,7 +25,7 @@ class TestTimedSwitch(BasicNumberTests, SwitchableTests, TuyaDeviceTestCase):
             scale=60,
             scale=60,
             unit=UnitOfTime.MINUTES,
             unit=UnitOfTime.MINUTES,
         )
         )
-        self.mark_secondary(["number_timer"])
+        self.mark_secondary(["number_timer", "select_power_on_state"])
 
 
     def test_device_class_is_outlet(self):
     def test_device_class_is_outlet(self):
         self.assertEqual(self.subject.device_class, SwitchDeviceClass.OUTLET)
         self.assertEqual(self.subject.device_class, SwitchDeviceClass.OUTLET)