瀏覽代碼

tests (time): allow new hms dp

Jason Rumney 3 月之前
父節點
當前提交
4b9b21a4d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test_device_config.py

+ 1 - 1
tests/test_device_config.py

@@ -264,7 +264,7 @@ KNOWN_DPS = {
     },
     "switch": {"required": ["switch"], "optional": ["current_power_w"]},
     "text": {"required": ["value"], "optional": []},
-    "time": {"required": [{"or": ["hour", "minute", "second"]}], "optional": []},
+    "time": {"required": [{"or": ["hour", "minute", "second", "hms"]}], "optional": []},
     "vacuum": {
         "required": ["status"],
         "optional": [