Skip to content

Commit

Permalink
Fix bug with patch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
natekspencer committed Feb 1, 2021
1 parent 0f4cbc8 commit df42f2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Nathan Spencer
Copyright (c) 2021 Nathan Spencer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 6 additions & 2 deletions pylitterbot/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,16 @@ async def set_wait_time(self, wait_time: int):
)

async def set_robot_name(self, name: str):
data = await self._patch({NAME: name})
data = await self._patch(json={NAME: name})
self.save_robot_info(data)

async def reset_waste_drawer(self):
data = await self._patch(
{CYCLE_COUNT: 0, CYCLE_CAPACITY: self.cycle_capacity, DRAWER_FULL_CYCLES: 0}
json={
CYCLE_COUNT: 0,
CYCLE_CAPACITY: self.cycle_capacity,
DRAWER_FULL_CYCLES: 0,
}
)
self.save_robot_info(data)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="pylitterbot",
version="2021.1.1",
version="2021.2.1",
description="Python package for controlling a Litter-Robot Connect self-cleaning litter box.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit df42f2b

Please sign in to comment.