Sfoglia il codice sorgente

Add a test for brightness on lights that don't support it.

Jason Rumney 4 anni fa
parent
commit
e89dfa9070
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      tests/devices/test_goldair_gpph_heater.py

+ 3 - 0
tests/devices/test_goldair_gpph_heater.py

@@ -349,6 +349,9 @@ class TestGoldairHeater(TuyaDeviceTestCase):
     def test_light_color_mode(self):
         self.assertEqual(self.light.color_mode, COLOR_MODE_ONOFF)
 
+    def test_light_has_no_brightness(self):
+        self.assertIsNone(self.light.brightness)
+
     def test_light_icon(self):
         self.dps[LIGHT_DPS] = True
         self.assertEqual(self.light.icon, "mdi:led-on")