فهرست منبع

Saswell C16: allow temperature to go full range in all modes.

The thermostat seems to auto-switch to anti-freeze mode when turned down, which
is surprising to the user when it cannot be turned back up. Hopefully it can
auto-switch when turning up also.
Jason Rumney 4 سال پیش
والد
کامیت
55048c7e03
2فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 6
      custom_components/tuya_local/devices/saswell_c16_thermostat.yaml
  2. 0 2
      tests/devices/test_saswell_c16_thermostat.py

+ 0 - 6
custom_components/tuya_local/devices/saswell_c16_thermostat.yaml

@@ -13,12 +13,6 @@ primary_entity:
       mapping:
       mapping:
         - scale: 10
         - scale: 10
           step: 5
           step: 5
-          constraint: preset_mode
-          conditions:
-            - dps_val: "Anti_frozen"
-              range:
-                min: 50
-                max: 150
     - id: 3
     - id: 3
       name: preset_mode
       name: preset_mode
       type: string
       type: string

+ 0 - 2
tests/devices/test_saswell_c16_thermostat.py

@@ -83,8 +83,6 @@ class TestSaswellC16Thermostat(TuyaDeviceTestCase):
 
 
     def test_maximum_target_temperature(self):
     def test_maximum_target_temperature(self):
         self.assertEqual(self.subject.max_temp, 40.0)
         self.assertEqual(self.subject.max_temp, 40.0)
-        self.dps[PRESET_DPS] = "Anti_frozen"
-        self.assertEqual(self.subject.max_temp, 15.0)
 
 
     async def test_set_target_temperature(self):
     async def test_set_target_temperature(self):
         async with assert_device_properties_set(
         async with assert_device_properties_set(