diff --git a/pybalboa/balboa.py b/pybalboa/balboa.py index 64de5ac..0f52c71 100644 --- a/pybalboa/balboa.py +++ b/pybalboa/balboa.py @@ -385,10 +385,10 @@ async def change_heatmode(self, newmode): data[8] = M_END # calculate how many times to push the button - for iter in range(0, 3): + for iter in range(1, 2+1): if newmode == ((self.heatmode + iter) % 3): break - for pushes in range(0, iter): + for pushes in range(1, iter+1): self.writer.write(data) await self.writer.drain() await asyncio.sleep(0.5) @@ -496,12 +496,12 @@ async def change_blower(self, newstate): data[8] = M_END # calculate how many times to push the button - for iter in range(0, 4): + for iter in range(1, 4+1): if newstate == ((self.blower_status + iter) % 4): break # now push the button until we hit desired state - for pushes in range(0, iter): + for pushes in range(1, iter+1): data[5] = C_BLOWER data[7] = self.balboa_calc_cs(data[1:], 6) self.writer.write(data) diff --git a/setup.py b/setup.py index 5af2a9f..ced5a1b 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def readme(): setup(name='pybalboa', - version='0.8', + version='0.9', description='Module to communicate with a Balboa spa wifi adapter', long_description='Module to communicate with a Balboa spa wifi adapter', url='https://github.com/garbled1/pybalboa',