diff --git a/zhaquirks/tuya/ts0601_valve.py b/zhaquirks/tuya/ts0601_valve.py index 6d91f32bf8..3606c80c89 100644 --- a/zhaquirks/tuya/ts0601_valve.py +++ b/zhaquirks/tuya/ts0601_valve.py @@ -25,8 +25,8 @@ TUYA_CLUSTER_ID, EnchantedDevice, TuyaLocalCluster, + TuyaPowerConfigurationCluster2AAA, TuyaPowerConfigurationCluster4AA, - TuyaPowerConfigurationCluster2AAA ) from zhaquirks.tuya.builder import TuyaQuirkBuilder from zhaquirks.tuya.mcu import ( @@ -579,6 +579,7 @@ class RoyalGardineerWeatherDelay(t.enum8): Delayed_48h = 0x02 Delayed_72h = 0x03 + class RoyalGardineerTimerState(t.enum8): """Royal Gardineer Irrigation Valve timer state enum.""" @@ -586,6 +587,7 @@ class RoyalGardineerTimerState(t.enum8): Active = 0x01 Enabled = 0x02 + ( TuyaQuirkBuilder("_TZE200_2wg5qrjy", "TS0601") .tuya_onoff(dp_id=1) @@ -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",