Revert Rachio to seconds instead of total_seconds (#50307)

* revert seconds

* Add comment

* Update comment to include max runtime
This commit is contained in:
Brian Rogers 2021-05-08 23:09:31 -04:00 committed by GitHub
parent 9059ce1c0f
commit 07a93be176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,