소스 검색

HLG Infinity alarm: give Learn selects a default value

Attributes are not visible when the state is unavailable, so give these
a default value so the attributes can be shown.

PR #2525
Jason Rumney 1 년 전
부모
커밋
6a9ef10c50
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      custom_components/tuya_local/devices/hlg_infinity_alarm.yaml

+ 6 - 0
custom_components/tuya_local/devices/hlg_infinity_alarm.yaml

@@ -229,6 +229,9 @@ secondary_entities:
             value: "Panic"
           - dps_val: "CANCEL"
             value: "Cancel"
+          - dps_val: null
+            value: "Cancel"
+            hidden: true
       - id: 113
         type: integer
         name: buttons_learned
@@ -252,6 +255,9 @@ secondary_entities:
             value: "Sector 4"
           - dps_val: "CANCEL"
             value: "Cancel"
+          - dps_val: null
+            value: "Cancel"
+            hidden: true
       - id: 114
         type: integer
         name: sensors_learned