mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
Do not adapt lights that are turned on with an effect (#844)
* Do not adapt lights that are turned on with an effect * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
This commit is contained in:
parent
b02c3f8024
commit
8fe532748a
1 changed files with 4 additions and 1 deletions
|
|
@ -2654,7 +2654,10 @@ class AdaptiveLightingManager:
|
|||
entity_id,
|
||||
service_data,
|
||||
)
|
||||
if any(attr in service_data for attr in COLOR_ATTRS | BRIGHTNESS_ATTRS):
|
||||
if any(
|
||||
attr in service_data
|
||||
for attr in COLOR_ATTRS | BRIGHTNESS_ATTRS | {ATTR_EFFECT}
|
||||
):
|
||||
self.mark_as_manual_control(entity_id)
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue