From 498f497fefbeb07e8de11e95367cdeb136c7aa4e Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:57:08 -0400 Subject: [PATCH 1/3] Update graphql.py --- pyhilo/graphql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyhilo/graphql.py b/pyhilo/graphql.py index 3cdb37e..0d1646f 100644 --- a/pyhilo/graphql.py +++ b/pyhilo/graphql.py @@ -548,6 +548,9 @@ async def subscribe_to_device_updated( self, location_hilo_id: str, callback: callable = None ) -> None: LOG.debug("subscribe_to_device_updated called") + + #Setting log level to suppress keepalive messages on gql transport + logging.getLogger('gql.transport.websockets').setLevel(logging.WARNING) while True: # Loop to reconnect if the connection is lost LOG.debug("subscribe_to_device_updated while true") access_token = await self._get_access_token() From fcb128e27faeb7b4a6e22bfc6e22ea228b2bf7ae Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:59:10 -0400 Subject: [PATCH 2/3] Linting --- pyhilo/graphql.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyhilo/graphql.py b/pyhilo/graphql.py index 0d1646f..8959345 100644 --- a/pyhilo/graphql.py +++ b/pyhilo/graphql.py @@ -1,4 +1,5 @@ import asyncio +import logging from typing import Any, Dict, List, Optional from gql import Client, gql @@ -549,8 +550,8 @@ async def subscribe_to_device_updated( ) -> None: LOG.debug("subscribe_to_device_updated called") - #Setting log level to suppress keepalive messages on gql transport - logging.getLogger('gql.transport.websockets').setLevel(logging.WARNING) + # Setting log level to suppress keepalive messages on gql transport + logging.getLogger("gql.transport.websockets").setLevel(logging.WARNING) while True: # Loop to reconnect if the connection is lost LOG.debug("subscribe_to_device_updated while true") access_token = await self._get_access_token() From a02b7545aa1e85919d2b8983a6aa14b56aa4545d Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Wed, 1 Oct 2025 20:00:15 -0400 Subject: [PATCH 3/3] Bump up versions --- pyhilo/const.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhilo/const.py b/pyhilo/const.py index 3faf188..2c06183 100755 --- a/pyhilo/const.py +++ b/pyhilo/const.py @@ -7,7 +7,7 @@ LOG: Final = logging.getLogger(__package__) DEFAULT_STATE_FILE: Final = "hilo_state.yaml" REQUEST_RETRY: Final = 9 -PYHILO_VERSION: Final = "2025.9.01" +PYHILO_VERSION: Final = "2025.10.01" # TODO: Find a way to keep previous line in sync with pyproject.toml automatically CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded" diff --git a/pyproject.toml b/pyproject.toml index da0fcb1..b48e8e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ exclude = ".venv/.*" [tool.poetry] name = "python-hilo" -version = "2025.9.1" +version = "2025.10.1" description = "A Python3, async interface to the Hilo API" readme = "README.md" authors = ["David Vallee Delisle "]