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/pyhilo/graphql.py b/pyhilo/graphql.py index 3cdb37e..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 @@ -548,6 +549,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() 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 "]