Skip to content

Commit

Permalink
Fix invalid room id index for CLI (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh authored Jan 3, 2025
1 parent c58f198 commit 4abe876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def main():
heater = heaters[heater]
await heater.update()

if (room := int(args.room) + 1) > (nr_rooms := len(heater.rooms)):
if ((room := int(args.room)) + 1) > (nr_rooms := len(heater.rooms)):
print(
f"Nr of rooms found for heater: {nr_rooms}. "
f"Room index {args.room} is invalid"
Expand Down
2 changes: 1 addition & 1 deletion incomfortclient/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import aiohttp

__version__ = "0.6.4"
__version__ = "0.6.5-1"

NULL_SERIAL_NO = "000W00000"
HEATERLIST = "heaterlist"
Expand Down

0 comments on commit 4abe876

Please sign in to comment.