Преглед изворни кода

Arlec fan with light: adjust test based on color_temp being rounded

Jason Rumney пре 4 година
родитељ
комит
ad36e1b59b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/devices/test_arlec_fan_light.py

+ 1 - 1
tests/devices/test_arlec_fan_light.py

@@ -137,7 +137,7 @@ class TestArlecFan(SwitchableTests, BasicSelectTests, TuyaDeviceTestCase):
 
     def test_light_color_temp(self):
         self.dps[COLORTEMP_DPS] = 70
-        self.assertEqual(self.light.color_temp, 395.9)
+        self.assertEqual(self.light.color_temp, 396)
 
     async def test_light_async_turn_on(self):
         async with assert_device_properties_set(