Просмотр исходного кода

Point panel heater: changes from review

- naming change
- fix missing name on dp
- change switch to light with existing translation_key

PR #2409
Jason Rumney 1 год назад
Родитель
Сommit
3f73ed8bda
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      custom_components/tuya_local/devices/point_panel_heater.yaml

+ 5 - 4
custom_components/tuya_local/devices/point_panel_heater.yaml

@@ -1,7 +1,7 @@
-name: Point Panel Heater
+name: Panel heater
 products:
 products:
   - id: nqj51hxb2tx5kklv
   - id: nqj51hxb2tx5kklv
-    name: Point Panel Heater POPANW600
+    name: Point POPANW600
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   translation_only_key: heater
   translation_only_key: heater
@@ -43,9 +43,10 @@ secondary_entities:
       - id: 7
       - id: 7
         type: boolean
         type: boolean
         name: lock
         name: lock
-  - entity: switch
-    translation_key: display_auto
+  - entity: light
+    translation_key: display
     category: config
     category: config
     dps:
     dps:
       - id: 109
       - id: 109
         type: boolean
         type: boolean
+        name: switch