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

Expedites #1934 and #1979 to Prod #1983

Merged
merged 4 commits into from
Mar 7, 2025
Merged

Conversation

dljsjr
Copy link
Contributor

@dljsjr dljsjr commented Mar 6, 2025

Expedites #1934 and #1979 to Production

dljsjr added 4 commits March 6, 2025 15:20
This constant should be 100, but I resolved a conflict during a rebase incorrectly
when prepping the original PR and it got set to 11 instead of 100.
If the bulb's color temperature changes because of an ST-initiated user
requested setpoint, we emit that directly instead of clamping to the
step size. This is to remain consistent with the way things are done on
the rest of the platform with other integrations.
The existing logic utilized the device persistent fields to determine
if a range update was needed, as to avoid un-necessary attribute emits.

This would lead to existing devices not ever emitting the min/max color
temp range values if the saved min/max matched what was reported by the
API.

This is adjusted to use the cached latest state for the device instead,
so that we can detect the `nil` if the device has never emitted a value
for its range.
There was a slight bug with the previous port of the rounding logic
from Matter/Zigbee over to Hue because I was reading two different
places in the code and getting them confused in my head.

This change does the following:

1. Only use the 100 step size constraint when computing the min/max
values instead of everywhere. This is in line with how this is handled
elsewhere on the platform.
2. Use normal rounding everywhere else.
@dljsjr dljsjr changed the title fix(hue): Fix Mirek -> Kelvin conversion constant. Expedites #1934 and #1979 to Beta Mar 6, 2025
@dljsjr dljsjr changed the title Expedites #1934 and #1979 to Beta Expedites #1934 and #1979 to Prod Mar 6, 2025
Copy link

github-actions bot commented Mar 6, 2025

Channel deleted.

Copy link

github-actions bot commented Mar 6, 2025

Test Results

   64 files    410 suites   0s ⏱️
2 067 tests 2 067 ✅ 0 💤 0 ❌
3 546 runs  3 546 ✅ 0 💤 0 ❌

Results for commit f4677b0.

Copy link

github-actions bot commented Mar 6, 2025

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against f4677b0

@dljsjr dljsjr merged commit e07b0d1 into production Mar 7, 2025
11 checks passed
@dljsjr dljsjr deleted the hotfix/hue-color-temp-to-prod branch March 7, 2025 04:35
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.

3 participants