Skip to content

Commit

Permalink
Apply pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 10, 2024
1 parent 0437aa8 commit dfa7fe8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zhaquirks/tuya/ts0601_valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
TUYA_CLUSTER_ID,
EnchantedDevice,
TuyaLocalCluster,
TuyaPowerConfigurationCluster2AAA,
TuyaPowerConfigurationCluster4AA,
TuyaPowerConfigurationCluster2AAA
)
from zhaquirks.tuya.builder import TuyaQuirkBuilder
from zhaquirks.tuya.mcu import (
Expand Down Expand Up @@ -579,13 +579,15 @@ class RoyalGardineerWeatherDelay(t.enum8):
Delayed_48h = 0x02
Delayed_72h = 0x03


class RoyalGardineerTimerState(t.enum8):
"""Royal Gardineer Irrigation Valve timer state enum."""

Disabled = 0x00
Active = 0x01
Enabled = 0x02


(
TuyaQuirkBuilder("_TZE200_2wg5qrjy", "TS0601")
.tuya_onoff(dp_id=1)
Expand All @@ -601,7 +603,7 @@ class RoyalGardineerTimerState(t.enum8):
min_value=1,
max_value=600,
step=1,
multiplier=1/60,
multiplier=1 / 60,
unit=UnitOfTime.MINUTES,
translation_key="timer_time_left",
fallback_name="Timer time left",
Expand Down

0 comments on commit dfa7fe8

Please sign in to comment.