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.
Files changed (21) hide show
  1. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/PKG-INFO +1 -1
  2. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/api.py +1 -1
  3. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/const.py +6 -2
  4. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyproject.toml +1 -1
  5. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/LICENSE +0 -0
  6. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/README.md +0 -0
  7. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/__init__.py +0 -0
  8. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/__init__.py +0 -0
  9. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/climate.py +0 -0
  10. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/graphql_value_mapper.py +0 -0
  11. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/light.py +0 -0
  12. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/sensor.py +0 -0
  13. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/device/switch.py +0 -0
  14. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/devices.py +0 -0
  15. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/event.py +0 -0
  16. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/exceptions.py +0 -0
  17. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/graphql.py +0 -0
  18. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/oauth2helper.py +0 -0
  19. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/util/__init__.py +0 -0
  20. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/util/state.py +0 -0
  21. {python_hilo-2026.1.1 → python_hilo-2026.1.2}/pyhilo/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-hilo
3
- Version: 2026.1.1
3
+ Version: 2026.1.2
4
4
  Summary: A Python3, async interface to the Hilo API
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -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], await self.async_request("get", url))
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.01"
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
@@ -40,7 +40,7 @@ exclude = ".venv/.*"
40
40
 
41
41
  [tool.poetry]
42
42
  name = "python-hilo"
43
- version = "2026.1.1"
43
+ version = "2026.1.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
File without changes