diff --git a/LICENSE b/LICENSE index 0eee427..b8d9db1 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/pylitterbot/robot.py b/pylitterbot/robot.py index 812a60c..551c344 100644 --- a/pylitterbot/robot.py +++ b/pylitterbot/robot.py @@ -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) diff --git a/setup.py b/setup.py index b6bcb80..c6c5acb 100644 --- a/setup.py +++ b/setup.py @@ -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",