소스 검색

Tests: fix double inclusion of duration device_class

Jason Rumney 1 년 전
부모
커밋
079a1a6245
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      tests/devices/test_motion_sensor_light.py

+ 1 - 2
tests/devices/test_motion_sensor_light.py

@@ -35,11 +35,10 @@ class TestMotionLight(BasicSwitchTests, MultiNumberTests, TuyaDeviceTestCase):
                 {
                     "dps": TIME_DPS,
                     "name": "number_duration",
-                    "device_class": "duration",
+                    "device_class": NumberDeviceClass.DURATION,
                     "min": 10,
                     "max": 900,
                     "step": 10,
-                    "device_class": NumberDeviceClass.DURATION,
                     "unit": UnitOfTime.SECONDS,
                 },
                 {