diff --git a/changelog.md b/changelog.md index fd37e29a..181d71b7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# Version 2024.8.7 (2024-08-18) + +- Fix empty channel on get_parameters + # Version 2024.8.6 (2024-08-18) - Fix get_parameters diff --git a/hahomematic/central/__init__.py b/hahomematic/central/__init__.py index dd5c1e82..79bcf712 100644 --- a/hahomematic/central/__init__.py +++ b/hahomematic/central/__init__.py @@ -1065,16 +1065,20 @@ def get_parameters( ): continue + if not full_format: + parameters.add(parameter) + continue + channel = ( UN_IGNORE_WILDCARD if use_channel_wildcard else get_channel_no(channel_address) ) - parameters.add( - f"{parameter}:{paramset_key}@{device_type}:{channel}" - if full_format - else parameter - ) + + full_parameter = f"{parameter}:{paramset_key}@{device_type}:" + if channel is not None: + full_parameter += str(channel) + parameters.add(full_parameter) return list(parameters) diff --git a/pyproject.toml b/pyproject.toml index f0c802a6..a44aec93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hahomematic" -version = "2024.8.6" +version = "2024.8.7" license = {text = "MIT License"} description = "Homematic interface for Home Assistant running on Python 3." readme = "README.md"