From 487ed76bbf728c9b14ce4a48281f3ece338a7630 Mon Sep 17 00:00:00 2001 From: r1 <22638751+rewardone@users.noreply.github.com> Date: Sun, 15 Oct 2023 07:53:53 -0500 Subject: [PATCH] await update in set property --- pyproject.toml | 2 +- src/ayla_iot_unofficial/__init__.py | 2 +- src/ayla_iot_unofficial/device.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e9a1241..1638254 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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="rewardone@gmail.com" }, ] diff --git a/src/ayla_iot_unofficial/__init__.py b/src/ayla_iot_unofficial/__init__.py index e901d8b..e414ede 100644 --- a/src/ayla_iot_unofficial/__init__.py +++ b/src/ayla_iot_unofficial/__init__.py @@ -13,4 +13,4 @@ AylaReadOnlyPropertyError, ) -__version__ = '1.0.7' \ No newline at end of file +__version__ = '1.0.8' \ No newline at end of file diff --git a/src/ayla_iot_unofficial/device.py b/src/ayla_iot_unofficial/device.py index 75231e0..1c7c98a 100644 --- a/src/ayla_iot_unofficial/device.py +++ b/src/ayla_iot_unofficial/device.py @@ -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"""