فهرست منبع

Inkbird ITC308: update test for hvac_modes

Since the hvac_modes now returns ["auto"] rather than []
when there is no hvac_mode dp, to try to workaround UI
behaviour, the tests need updating for the new expected
result.
Jason Rumney 2 سال پیش
والد
کامیت
c08b3a5476
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tests/devices/test_inkbird_itc308_thermostat.py

+ 1 - 1
tests/devices/test_inkbird_itc308_thermostat.py

@@ -188,7 +188,7 @@ class TestInkbirdITC308Thermostat(
         self.assertEqual(self.subject.icon, "mdi:thermometer-alert")
 
     def test_climate_hvac_modes(self):
-        self.assertEqual(self.subject.hvac_modes, [])
+        self.assertEqual(self.subject.hvac_modes, ["auto"])
 
     def test_current_temperature(self):
         self.dps[UNIT_DPS] = "C"