From 61d20c863727f3b97ed784475bf86d2e91c1b7aa Mon Sep 17 00:00:00 2001 From: Josef Zweck <24647999+zweckj@users.noreply.github.com> Date: Wed, 6 Nov 2024 20:22:29 +0100 Subject: [PATCH] add weight property --- pyacaia_async/acaiascale.py | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyacaia_async/acaiascale.py b/pyacaia_async/acaiascale.py index fa6d58f..80811f8 100644 --- a/pyacaia_async/acaiascale.py +++ b/pyacaia_async/acaiascale.py @@ -105,6 +105,11 @@ def device_state(self) -> AcaiaDeviceState | None: """Return the device info of the scale.""" return self._device_state + @property + def weight(self) -> float | None: + """Return the weight of the scale.""" + return self._weight + @classmethod async def create( cls, diff --git a/setup.py b/setup.py index d6b88dd..48edf0b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyacaia_async", - version="0.0.12b3", + version="0.0.12b4", description="An async implementation of PyAcaia", long_description=readme, long_description_content_type="text/markdown",