vinteo / hass-opensprinkler

OpenSprinkler Integration for Home Assistant
MIT License
204 stars 40 forks source link

OpenSprinkler bug. run_seconds can not be float in opensprinkler.run service #294

Open bob-tm opened 2 months ago

bob-tm commented 2 months ago

Hi,

After some calculations and converting between minutes and seconds I receive run_seconds parametr like array of float with .0 at the end of each zone.

but OpenSprinkler interprets the dot as a zone separator, so run_seconds = [0,480.0,0,540.0,0,2820.0,3240.0,0] do not work correctly

run_seconds = [0,480,0,540,0,2820,3240,0] - work nice

I add int() conversion in my code for each item in array, but it is easy to add similar conversion before running request.