diff --git a/homepilot/api.py b/homepilot/api.py index 01eb054..971a846 100644 --- a/homepilot/api.py +++ b/homepilot/api.py @@ -338,7 +338,7 @@ async def async_turn_led_off(self): async def async_set_auto_update_on(self): await self.authenticate() async with aiohttp.ClientSession(cookie_jar=self.cookie_jar) as session: - async with session.post( + async with session.put( f"http://{self.host}/service/system-update-image/auto_update", json={"auto_update": True}, ) as response: @@ -347,7 +347,7 @@ async def async_set_auto_update_on(self): async def async_set_auto_update_off(self): await self.authenticate() async with aiohttp.ClientSession(cookie_jar=self.cookie_jar) as session: - async with session.post( + async with session.put( f"http://{self.host}/service/system-update-image/auto_update", json={"auto_update": False}, ) as response: diff --git a/setup.py b/setup.py index a885a82..899bcd8 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyrademacher", - version="0.9.10", + version="0.9.11", author="Pedro Ribeiro", author_email="pedroeusebio@gmail.com", description="Control devices connected to your Rademacher Homepilot "