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.
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/PKG-INFO +1 -1
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/const.py +1 -1
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/graphql_value_mapper.py +2 -2
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/graphql.py +4 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyproject.toml +1 -1
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/LICENSE +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/README.md +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/__init__.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/api.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/__init__.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/climate.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/light.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/sensor.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/device/switch.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/devices.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/event.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/exceptions.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/oauth2helper.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/util/__init__.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/util/state.py +0 -0
- {python_hilo-2025.9.1 → python_hilo-2025.10.2}/pyhilo/websocket.py +0 -0
|
@@ -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.
|
|
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("
|
|
399
|
+
if device.get("level") is not None:
|
|
400
400
|
attributes.append(
|
|
401
401
|
self.build_attribute(
|
|
402
|
-
device["hiloId"], "Intensity", device["
|
|
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()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|