Skip to content

Commit df5091f

Browse files
authored
Merge pull request #336 from maxyvon/unknown_brightness
fix unknown_brightness
2 parents 1c5abcb + c9d1701 commit df5091f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyhilo/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
LOG: Final = logging.getLogger(__package__)
88
DEFAULT_STATE_FILE: Final = "hilo_state.yaml"
99
REQUEST_RETRY: Final = 9
10-
PYHILO_VERSION: Final = "2025.10.01"
10+
PYHILO_VERSION: Final = "2025.10.02"
1111
# TODO: Find a way to keep previous line in sync with pyproject.toml automatically
1212

1313
CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded"

pyhilo/device/graphql_value_mapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,10 @@ def _build_dimmer(self, device: Dict[str, Any]) -> list[Dict[str, Any]]:
396396
attributes = []
397397
if device.get("power") is not None:
398398
attributes.append(self._map_power(device))
399-
if device.get("Level") is not None:
399+
if device.get("level") is not None:
400400
attributes.append(
401401
self.build_attribute(
402-
device["hiloId"], "Intensity", device["Level"]["value"] / 100
402+
device["hiloId"], "Intensity", device["level"] / 100
403403
)
404404
)
405405
attributes.append(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exclude = ".venv/.*"
4040

4141
[tool.poetry]
4242
name = "python-hilo"
43-
version = "2025.10.1"
43+
version = "2025.10.2"
4444
description = "A Python3, async interface to the Hilo API"
4545
readme = "README.md"
4646
authors = ["David Vallee Delisle <me@dvd.dev>"]

0 commit comments

Comments
 (0)