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

Remove effects from HmIP-RGBW when in PWM mode #1367

Merged
merged 1 commit into from
Jan 9, 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.1.5 (2024-01-09)

- Remove effects from HmIP-RGBW when in PWM mode

# Version 2024.1.4 (2024-01-07)

- Fix relevant entities for HmIP-RGBW
Expand Down
9 changes: 9 additions & 0 deletions hahomematic/platforms/custom/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,15 @@ def supports_color_temperature(self) -> bool:
"""Flag if light supports color temperature."""
return self._e_device_operation_mode.value == DeviceOperationMode.TUNABLE_WHITE

@config_property
def supports_effects(self) -> bool:
"""Flag if light supports effects."""
return (
self._e_device_operation_mode.value != DeviceOperationMode.PWM
and self.effects is not None
and len(self.effects) > 0
)

@config_property
def supports_hs_color(self) -> bool:
"""Flag if light supports color."""
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.1.4"
version = "2024.1.5"
license = {text = "MIT License"}
description = "Homematic interface for Home Assistant running on Python 3."
readme = "README.md"
Expand Down