python-hilo 2025.9.1__tar.gz → 2025.10.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/PKG-INFO +1 -1
  2. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/const.py +1 -1
  3. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/graphql_value_mapper.py +2 -2
  4. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/graphql.py +4 -0
  5. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyproject.toml +1 -1
  6. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/LICENSE +0 -0
  7. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/README.md +0 -0
  8. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/__init__.py +0 -0
  9. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/api.py +0 -0
  10. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/__init__.py +0 -0
  11. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/climate.py +0 -0
  12. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/light.py +0 -0
  13. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/sensor.py +0 -0
  14. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/switch.py +0 -0
  15. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/devices.py +0 -0
  16. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/event.py +0 -0
  17. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/exceptions.py +0 -0
  18. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/oauth2helper.py +0 -0
  19. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/util/__init__.py +0 -0
  20. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/util/state.py +0 -0
  21. {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-hilo
3
- Version: 2025.9.1
3
+ Version: 2025.10.2
4
4
  Summary: A Python3, async interface to the Hilo API
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -7,7 +7,7 @@ import aiohttp
7
7
  LOG: Final = logging.getLogger(__package__)
8
8
  DEFAULT_STATE_FILE: Final = "hilo_state.yaml"
9
9
  REQUEST_RETRY: Final = 9
10
- PYHILO_VERSION: Final = "2025.9.01"
10
+ PYHILO_VERSION: Final = "2025.10.02"
11
11
  # TODO: Find a way to keep previous line in sync with pyproject.toml automatically
12
12
 
13
13
  CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded"
@@ -396,10 +396,10 @@ class GraphqlValueMapper:
396
396
  attributes = []
397
397
  if device.get("power") is not None:
398
398
  attributes.append(self._map_power(device))
399
- if device.get("Level") is not None:
399
+ if device.get("level") is not None:
400
400
  attributes.append(
401
401
  self.build_attribute(
402
- device["hiloId"], "Intensity", device["Level"]["value"] / 100
402
+ device["hiloId"], "Intensity", device["level"] / 100
403
403
  )
404
404
  )
405
405
  attributes.append(
@@ -1,4 +1,5 @@
1
1
  import asyncio
2
+ import logging
2
3
  from typing import Any, Dict, List, Optional
3
4
 
4
5
  from gql import Client, gql
@@ -548,6 +549,9 @@ class GraphQlHelper:
548
549
  self, location_hilo_id: str, callback: callable = None
549
550
  ) -> None:
550
551
  LOG.debug("subscribe_to_device_updated called")
552
+
553
+ # Setting log level to suppress keepalive messages on gql transport
554
+ logging.getLogger("gql.transport.websockets").setLevel(logging.WARNING)
551
555
  while True: # Loop to reconnect if the connection is lost
552
556
  LOG.debug("subscribe_to_device_updated while true")
553
557
  access_token = await self._get_access_token()
@@ -40,7 +40,7 @@ exclude = ".venv/.*"
40
40
 
41
41
  [tool.poetry]
42
42
  name = "python-hilo"
43
- version = "2025.9.1"
43
+ version = "2025.10.2"
44
44
  description = "A Python3, async interface to the Hilo API"
45
45
  readme = "README.md"
46
46
  authors = ["David Vallee Delisle <me@dvd.dev>"]
File without changes