Skip to content

Commit

Permalink
Merge pull request #161 from cjsturgess/timedelta_minutes_fix
Browse files Browse the repository at this point in the history
Fix timedelta attribute error
  • Loading branch information
sebr authored Jan 10, 2023
2 parents 02821ee + 7d692c4 commit b6d4c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bhyve/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ async def async_turn_on(self, **kwargs: Any) -> None:
_LOGGER.warning(
"Switch %s manual preset runtime is 0, watering has defaulted to %s minutes. Set the manual run time on your device or please specify number of minutes using the bhyve.start_watering service",
self._device_name,
DEFAULT_MANUAL_RUNTIME.minutes,
int(DEFAULT_MANUAL_RUNTIME.seconds / 60),
)
run_time = 5

Expand Down

0 comments on commit b6d4c00

Please sign in to comment.