Преглед изворни кода

IPS Pro heatpump: remove duplicate attribute.

Since power level is separated into its own sensor, and is not a
standard climate attribute, it does not need to be an atttribute of
the climate entity.
Jason Rumney пре 3 година
родитељ
комит
dc25eed1d5

+ 0 - 4
custom_components/tuya_local/devices/ips_pro_heatpump.yaml

@@ -42,10 +42,6 @@ primary_entity:
           value: F
         - dps_val: true
           value: C
-    - id: 104
-      name: power_level
-      type: integer
-      readonly: true
     - id: 105
       name: hvac_action
       type: string

+ 0 - 2
tests/devices/test_ips_pro_heatpump.py

@@ -159,7 +159,6 @@ class TestIpsProHeatpump(
         self.assertEqual(self.subject.hvac_action, CURRENT_HVAC_OFF)
 
     def test_extra_state_attributes(self):
-        self.dps[POWERLEVEL_DPS] = 50
         self.dps[UNKNOWN107_DPS] = 1
         self.dps[UNKNOWN108_DPS] = 2
         self.dps[UNKNOWN115_DPS] = 3
@@ -167,7 +166,6 @@ class TestIpsProHeatpump(
         self.assertDictEqual(
             self.subject.extra_state_attributes,
             {
-                "power_level": 50,
                 "unknown_107": 1,
                 "unknown_108": 2,
                 "unknown_115": 3,