Skip to content

Codex updated: Fix light effect not being turned off sometimes#832

Draft
dmulcahey wants to merge 2 commits into
devfrom
codex-updated-pr-733
Draft

Codex updated: Fix light effect not being turned off sometimes#832
dmulcahey wants to merge 2 commits into
devfrom
codex-updated-pr-733

Conversation

@dmulcahey

Copy link
Copy Markdown
Contributor

This pull request was created with Codex and is an updated version of the pull request it supersedes.

Original pull request: #733

DRAFT. Should be cleaned up further.

Proposed change

This fixes an issue where sending a light turn on command with a color temperature does not cause some lights to switch into color temperature mode if the "color loop" effect is currently active.

Previously, we only turned off the effect after sending color (temp) commands. Now, we also do it before, though only if we're certain that an effect is active, to not send unnecessary packets.

Notes

Lights continue to be one of the most complicated things to do 100% right. This is the one known issue that happens in some cases.

In general, the light class will be cleaned up soon a bit. I want to increase test coverage for all edge cases before, though.
This PR may be adjusted and merged only after that's done. We'll see.

Additional information

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.33%. Comparing base (c38e03e) to head (bc5acaf).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #832      +/-   ##
==========================================
+ Coverage   97.27%   97.33%   +0.05%     
==========================================
  Files          55       55              
  Lines       10930    10945      +15     
==========================================
+ Hits        10632    10653      +21     
+ Misses        298      292       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ZHA] Fix light effects not turning off sometimes

1 participant