forked from home-assistant/core
Revert Rachio to seconds instead of total_seconds (#50307)
* revert seconds * Add comment * Update comment to include max runtime
This commit is contained in:
@@ -418,9 +418,8 @@ class RachioZone(RachioSwitch):
|
|||||||
CONF_MANUAL_RUN_MINS, DEFAULT_MANUAL_RUN_MINS
|
CONF_MANUAL_RUN_MINS, DEFAULT_MANUAL_RUN_MINS
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self._controller.rachio.zone.start(
|
# The API limit is 3 hours, and requires an int be passed
|
||||||
self.zone_id, manual_run_time.total_seconds()
|
self._controller.rachio.zone.start(self.zone_id, manual_run_time.seconds)
|
||||||
)
|
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Watering %s on %s for %s",
|
"Watering %s on %s for %s",
|
||||||
self.name,
|
self.name,
|
||||||
|
Reference in New Issue
Block a user