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" 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( 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 "]