From 60fbf5b7bf4ccfe1eeb3e7b98c2bfb4c16dcc4d8 Mon Sep 17 00:00:00 2001 From: "Max Y." <44422604+maxyvon@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:23:11 -0400 Subject: [PATCH 1/3] fix unknown_brightness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La valeur du dimmer ne fonctionnait plus. UNKNOW était affiché à la place. --- pyhilo/device/graphql_value_mapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhilo/device/graphql_value_mapper.py b/pyhilo/device/graphql_value_mapper.py index 9ffc39d..a44c16c 100644 --- a/pyhilo/device/graphql_value_mapper.py +++ b/pyhilo/device/graphql_value_mapper.py @@ -396,10 +396,10 @@ def _build_dimmer(self, device: Dict[str, Any]) -> list[Dict[str, Any]]: attributes = [] if device.get("power") is not None: attributes.append(self._map_power(device)) - if device.get("Level") is not None: + if device.get("level") is not None: attributes.append( self.build_attribute( - device["hiloId"], "Intensity", device["Level"]["value"] / 100 + device["hiloId"], "Intensity", device["level"] / 100 ) ) attributes.append( From 2eaeac523d6cd434bc7afb10ee5cd1fb8f691eca Mon Sep 17 00:00:00 2001 From: "Max Y." <44422604+maxyvon@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:29:03 -0400 Subject: [PATCH 2/3] Bump up versions const.py --- pyhilo/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhilo/const.py b/pyhilo/const.py index 2c06183..814c645 100755 --- a/pyhilo/const.py +++ b/pyhilo/const.py @@ -7,7 +7,7 @@ LOG: Final = logging.getLogger(__package__) DEFAULT_STATE_FILE: Final = "hilo_state.yaml" REQUEST_RETRY: Final = 9 -PYHILO_VERSION: Final = "2025.10.01" +PYHILO_VERSION: Final = "2025.10.02" # TODO: Find a way to keep previous line in sync with pyproject.toml automatically CONTENT_TYPE_FORM: Final = "application/x-www-form-urlencoded" From c9d1701b775af25449c54c625745a9bbc84e436a Mon Sep 17 00:00:00 2001 From: "Max Y." <44422604+maxyvon@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:29:51 -0400 Subject: [PATCH 3/3] Bump up versions pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b48e8e0..ea1ac45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ exclude = ".venv/.*" [tool.poetry] name = "python-hilo" -version = "2025.10.1" +version = "2025.10.2" description = "A Python3, async interface to the Hilo API" readme = "README.md" authors = ["David Vallee Delisle "]