瀏覽代碼

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):
     def test_light_color_temp(self):
         self.dps[COLORTEMP_DPS] = 70
         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 def test_light_async_turn_on(self):
         async with assert_device_properties_set(
         async with assert_device_properties_set(