From db75f4d1a06e16c4cca6ab07a5e6443e708367b6 Mon Sep 17 00:00:00 2001 From: Chathika Weerasuriya <35107456+weerasuriya@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:17:01 +0100 Subject: [PATCH] bugfix: wrong logging object in sock update_properties call * Changed to package specific `logger` object. --- src/pyowletapi/sock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyowletapi/sock.py b/src/pyowletapi/sock.py index 506d823..49cdeb3 100644 --- a/src/pyowletapi/sock.py +++ b/src/pyowletapi/sock.py @@ -246,7 +246,7 @@ async def update_properties( (dict):Dictionary containing three dictionaries, one with the raw json response from the API and another with the stripped down properties from normalise_properties, the third will contain the new api tokens if they have changed, if they haven't changed this will be None """ - logging.info(f"Updating properties for device {self.serial}") + logger.info(f"Updating properties for device {self.serial}") properties = await self._api.get_properties(self.serial) self._raw_properties = properties["response"] if self._version is None: