Parcourir la source

Himox H05: add 1h and 2h to the timer.

Issue #142
Jason Rumney il y a 3 ans
Parent
commit
fb938500f6

+ 4 - 0
custom_components/tuya_local/devices/himox_h05_purifier.yaml

@@ -68,6 +68,10 @@ secondary_entities:
         mapping:
           - dps_val: cancel
             value: "Off"
+          - dps_val: 1h
+            value: "1 hour"
+          - dps_val: 2h
+            value: "2 hours"
           - dps_val: 4h
             value: "4 hours"
           - dps_val: 8h

+ 2 - 0
tests/devices/test_himox_h05_purifier.py

@@ -47,6 +47,8 @@ class TestHimoxH05Purifier(
             self.entities.get("select_timer"),
             {
                 "cancel": "Off",
+                "1h": "1 hour",
+                "2h": "2 hours",
                 "4h": "4 hours",
                 "8h": "8 hours",
             },