Skip to content

Commit

Permalink
Merge pull request #27 from andrey-git/fix_climate_react
Browse files Browse the repository at this point in the history
Fix Climate React post
  • Loading branch information
gjohansson-ST authored Sep 11, 2022
2 parents 3d55967 + be15f59 commit e892912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pysensibo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,15 @@ async def async_enable_climate_react(
return await self._put(APIV2 + "/pods/{}/smartmode".format(uid), params, data)

async def async_set_climate_react(
self, uid: str, data: dict[str, bool]
self, uid: str, data: dict[str, Any]
) -> dict[str, Any]:
"""Set Climate React on a device.
uid: UID for device
data: dict according to dev["smartmode"]
"""
params = {"apiKey": self.api_key}
return await self._put(APIV2 + "/pods/{}/smartmode".format(uid), params, data)
return await self._post(APIV2 + "/pods/{}/smartmode".format(uid), params, data)

async def async_get_timer(self, uid: str) -> dict[str, Any]:
"""Get Timer on a device.
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 @@
print(find_packages())
setup(
name="pysensibo",
version="1.0.19",
version="1.0.20",
description="asyncio-friendly python API for Sensibo",
long_description="asyncio-friendly python API for Sensibo"
"(https://sensibo.com). Requires Python 3.4+",
Expand Down

0 comments on commit e892912

Please sign in to comment.