Skip to content

Commit

Permalink
await update in set property
Browse files Browse the repository at this point in the history
  • Loading branch information
rewardone committed Oct 15, 2023
1 parent 732dfa1 commit 487ed76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ayla_iot_unofficial"
version = "1.0.7"
version = "1.0.8"
authors = [
{ name="Reward One", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/ayla_iot_unofficial/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
AylaReadOnlyPropertyError,
)

__version__ = '1.0.7'
__version__ = '1.0.8'
2 changes: 1 addition & 1 deletion src/ayla_iot_unofficial/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ async def async_set_property_value(self, property_name: PropertyName, value: Pro

async with await self.ayla_api.async_request('post', self.datapoints_endpoint, json=self.set_datapoint_payload(property_name, value)) as resp:
resp_data = await resp.json()
self.async_update()
await self.async_update()

def send_poll(self):
"""Send a wifi_report to trigger updated properties, this requires an ayla api token"""
Expand Down

0 comments on commit 487ed76

Please sign in to comment.