浏览代码

tests: update for unit standardization in translated entities

Jason Rumney 8 月之前
父节点
当前提交
7f94d5a1c3
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      tests/devices/test_inkbird_itc308_thermostat.py
  2. 1 0
      tests/devices/test_nashone_mts700wb_thermostat.py

+ 1 - 0
tests/devices/test_inkbird_itc308_thermostat.py

@@ -90,6 +90,7 @@ class TestInkbirdITC308Thermostat(
                     "step": 0.1,
                     "min": -9.9,
                     "max": 9.9,
+                    "unit": "°",
                 },
                 {
                     "name": "number_compressor_delay",

+ 1 - 0
tests/devices/test_nashone_mts700wb_thermostat.py

@@ -56,6 +56,7 @@ class TestNashoneMTS700WBThermostat(
             self.entities.get("number_temperature_calibration"),
             min=-5,
             max=5,
+            unit="°",
         )
         self.setUpBasicSelect(
             TIMER_DPS,