Skip to content

Commit

Permalink
Merge pull request #35 from peribeir/dev
Browse files Browse the repository at this point in the history
Fix API Set Auto Update
  • Loading branch information
peribeir authored Jun 8, 2023
2 parents 19d306e + 45fc746 commit 4c5cc51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions homepilot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
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 @@

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 "
Expand Down

0 comments on commit 4c5cc51

Please sign in to comment.