浏览代码

fix(mty2_breaker): add missing switch

Jason Rumney 15 小时之前
父节点
当前提交
7d1aa0c484
共有 1 个文件被更改,包括 7 次插入 和 0 次删除
  1. 7 0
      custom_components/tuya_local/devices/mty2_breaker.yaml

+ 7 - 0
custom_components/tuya_local/devices/mty2_breaker.yaml

@@ -3,6 +3,13 @@ products:
   - id: 4tpaetqac6lap6mv
     model: MTY2
 entities:
+  - entity: switch
+    translation_key: breaker
+    category: config
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
   - entity: text
     name: Relays on
     category: config