Przeglądaj źródła

fix: hide added temp_unit attributes needed for conditions

- these were not intended to be visible
- more units added to other devices
- remove icon check from NasHone tests
Jason Rumney 2 miesięcy temu
rodzic
commit
2037d946f9

+ 1 - 0
custom_components/tuya_local/devices/heatstorm_dh100twi_heater.yaml

@@ -191,6 +191,7 @@ entities:
       - id: 13
         type: string
         name: temp_unit
+        hidden: true
   - entity: select
     name: Thermometer
     icon: "mdi:thermometer"

+ 1 - 0
custom_components/tuya_local/devices/inkbird_itc308_thermostat.yaml

@@ -104,6 +104,7 @@ entities:
       - id: 101
         type: string
         name: temp_unit
+        hidden: true
   - entity: number
     name: Compressor delay
     icon: "mdi:clock"

+ 1 - 0
tests/devices/test_inkbird_sousvide.py

@@ -70,6 +70,7 @@ class TestInkbirdSousVideCooker(
                     "max": 9.9,
                     "scale": 10,
                     "step": 0.1,
+                    "unit": "°",
                 },
             ]
         )

+ 0 - 3
tests/devices/test_nashone_mts700wb_thermostat.py

@@ -148,6 +148,3 @@ class TestNashoneMTS700WBThermostat(
             self.subject.extra_state_attributes,
             {"work_state": "manual"},
         )
-
-    def test_icons(self):
-        self.assertEqual(self.basicNumber.icon, "mdi:arrow-collapse-up")