Explorar el Código

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

Jason Rumney hace 3 años
padre
commit
ad36e1b59b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(