From 07a93be1764c25a400eebabc57808cd6bd3c104e Mon Sep 17 00:00:00 2001 From: Brian Rogers Date: Sat, 8 May 2021 23:09:31 -0400 Subject: [PATCH] Revert Rachio to seconds instead of total_seconds (#50307) * revert seconds * Add comment * Update comment to include max runtime --- homeassistant/components/rachio/switch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/rachio/switch.py b/homeassistant/components/rachio/switch.py index 65249d0b8ea..de897cb7f07 100644 --- a/homeassistant/components/rachio/switch.py +++ b/homeassistant/components/rachio/switch.py @@ -418,9 +418,8 @@ class RachioZone(RachioSwitch): CONF_MANUAL_RUN_MINS, DEFAULT_MANUAL_RUN_MINS ) ) - self._controller.rachio.zone.start( - self.zone_id, manual_run_time.total_seconds() - ) + # The API limit is 3 hours, and requires an int be passed + self._controller.rachio.zone.start(self.zone_id, manual_run_time.seconds) _LOGGER.debug( "Watering %s on %s for %s", self.name,