Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix API Set Auto Update #35

Merged
merged 3 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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