Browse Source

Swap temperature and current temperature for BAC-002

Issue #84
Jason Rumney 4 years ago
parent
commit
3a3ab31cdc

+ 5 - 5
custom_components/tuya_local/devices/beca_bac002_thermostat_c.yaml

@@ -10,11 +10,6 @@ primary_entity:
           value: "off"
       hidden: true
     - id: 2
-      type: integer
-      name: current_temperature
-      mapping:
-        - scale: 2
-    - id: 3
       type: integer
       name: temperature
       unit: C
@@ -23,6 +18,11 @@ primary_entity:
         max: 70
       mapping:
         - scale: 2
+    - id: 3
+      type: integer
+      name: current_temperature
+      mapping:
+        - scale: 2
     - id: 5
       type: boolean
       name: preset_mode

+ 2 - 2
tests/devices/test_beca_bac002_thermostat.py

@@ -23,8 +23,8 @@ from ..mixins.select import BasicSelectTests
 from .base_device_tests import TuyaDeviceTestCase
 
 SWITCH_DPS = "1"
-CURRENTTEMP_DPS = "2"
-TEMPERATURE_DPS = "3"
+TEMPERATURE_DPS = "2"
+CURRENTTEMP_DPS = "3"
 PROGRAM_DPS = "4"
 PRESET_DPS = "5"
 LOCK_DPS = "6"