Skip to content

Commit

Permalink
Fix set_meal_insert_size on Feeder-Robot (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer authored Aug 26, 2022
1 parent f0abc9c commit 083d36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylitterbot/robot/feederrobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def refresh(self) -> None:

async def set_meal_insert_size(self, meal_insert_size: float) -> bool:
"""Set the meal insert size."""
if not (value := MEAL_INSERT_SIZE_CUPS_REVERSE_MAP.get(meal_insert_size)):
if (value := MEAL_INSERT_SIZE_CUPS_REVERSE_MAP.get(meal_insert_size)) is None:
raise InvalidCommandException(
f"Only meal insert sizes of {list(MEAL_INSERT_SIZE_CUPS_REVERSE_MAP)} are supported."
)
Expand Down

0 comments on commit 083d36e

Please sign in to comment.