Skip to content

Commit

Permalink
Fix empty channel on get_parameters (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Aug 18, 2024
1 parent 22952fe commit 776382b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 9 additions & 5 deletions hahomematic/central/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 776382b

Please sign in to comment.