Skip to content

Commit

Permalink
Bump to 0.9 for blower/readyinrest iter nonsense.
Browse files Browse the repository at this point in the history
  • Loading branch information
garbled1 committed May 30, 2020
1 parent 687171b commit 2f7793f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pybalboa/balboa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2f7793f

Please sign in to comment.