Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty channel on get_parameters #1641

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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