python-hilo 2026.1.1__tar.gz → 2026.1.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-2026.1.1 → python_hilo-2026.1.2}/PKG-INFO +1 -1
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/api.py +1 -1
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/const.py +6 -2
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyproject.toml +1 -1
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/LICENSE +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/README.md +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/__init__.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/__init__.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/climate.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/graphql_value_mapper.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/light.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/sensor.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/switch.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/devices.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/event.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/exceptions.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/graphql.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/oauth2helper.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/util/__init__.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/util/state.py +0 -0
- {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/websocket.py +0 -0
|
@@ -762,4 +762,4 @@ class API:
|
|
|
762
762
|
LOG.debug("Weather URL is %s", url)
|
|
763
763
|
response = await self.async_request("get", url)
|
|
764
764
|
LOG.debug("Weather API response: %s", response)
|
|
765
|
-
return cast(dict[str, Any],
|
|
765
|
+
return cast(dict[str, Any], response)
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import platform
|
|
3
|
+
import uuid
|
|
3
4
|
from typing import Final
|
|
4
5
|
|
|
5
6
|
import aiohttp
|
|
6
7
|
|
|
8
|
+
# THe instance ID is random and unique to a specific instance/run.
|
|
9
|
+
# Helps identifying multiple instances behind the same public IP, can be useful to the Hilo/HQ devs for debugging purposes
|
|
10
|
+
INSTANCE_ID: Final = str(uuid.uuid4())[24:]
|
|
7
11
|
LOG: Final = logging.getLogger(__package__)
|
|
8
12
|
DEFAULT_STATE_FILE: Final = "hilo_state.yaml"
|
|
9
13
|
REQUEST_RETRY: Final = 9
|
|
10
|
-
PYHILO_VERSION: Final = "2026.1.
|
|
14
|
+
PYHILO_VERSION: Final = "2026.1.02"
|
|
11
15
|
# TODO: Find a way to keep previous line in sync with pyproject.toml automatically
|
|
12
16
|
|
|
13
17
|
CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded"
|
|
@@ -46,7 +50,7 @@ AUTOMATION_CHALLENGE_ENDPOINT: Final = "/ChallengeHub"
|
|
|
46
50
|
|
|
47
51
|
|
|
48
52
|
# Request constants
|
|
49
|
-
DEFAULT_USER_AGENT: Final = f"PyHilo/{PYHILO_VERSION} aiohttp/{aiohttp.__version__} Python/{platform.python_version()}"
|
|
53
|
+
DEFAULT_USER_AGENT: Final = f"PyHilo/{PYHILO_VERSION}-{INSTANCE_ID} aiohttp/{aiohttp.__version__} Python/{platform.python_version()}"
|
|
50
54
|
|
|
51
55
|
|
|
52
56
|
# NOTE(dvd): Not sure how to get new ones so I'm using the ones from my emulator
|
|
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
|
|
File without changes
|