mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix bug when starting a RainMachine zone via service call (#64213)
This commit is contained in:
parent
fd955be547
commit
2133eaa3a1
@ -369,7 +369,7 @@ class RainMachineZone(RainMachineActivitySwitch):
|
|||||||
|
|
||||||
async def async_start_zone(self, *, zone_run_time: int) -> None:
|
async def async_start_zone(self, *, zone_run_time: int) -> None:
|
||||||
"""Start a particular zone for a certain amount of time."""
|
"""Start a particular zone for a certain amount of time."""
|
||||||
await self.async_turn_off(duration=zone_run_time)
|
await self.async_turn_on(duration=zone_run_time)
|
||||||
|
|
||||||
async def async_stop_zone(self) -> None:
|
async def async_stop_zone(self) -> None:
|
||||||
"""Stop a zone."""
|
"""Stop a zone."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user