Skip to content

Conversation

@dljsjr
Copy link
Member

@dljsjr dljsjr commented Nov 5, 2025

Check all that apply

Type of Change

  • Bug fix

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing

Description of Change

For multi-button devices, we were waiting to populate the mappings to
associate the multiple button service resources to the single device
record from the API responses we perform during the init handler.

This could lead to inconsistent state or failure to maintain mappings in
situations where those API calls failed for any reason.

We still need to make those API calls during init to establish the
current state of the device, but we now populate the mappings from
cached data (if it exists) instead of relying on those initial API calls
to resolve properly.

We also relax the channel timeouts around threaded API calls to reduce the likelihood that we error out on an API call that would succeed, but is being delayed by processing/queuing delay on the ST Hub.

For multi-button devices, we were waiting to populate the mappings to
associate the multiple button service resources to the single device
record from the API responses we perform during the `init` handler.

This could lead to inconsistent state or failure to maintain mappings in
situations where those API calls failed for any reason.

We still need to make those API calls during `init` to establish the
current state of the device, but we now populate the mappings from
cached data (if it exists) instead of relying on those initial API calls
to resolve properly.
@dljsjr dljsjr changed the title fix: Relax timeouts for threaded REST responses. fix: Hue Multi-Button Remote Inconsistencies Nov 5, 2025
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Test Results

   71 files    464 suites   0s ⏱️
2 411 tests 2 411 ✅ 0 💤 0 ❌
4 094 runs  4 094 ✅ 0 💤 0 ❌

Results for commit 3fc413e.

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 3fc413e

Copy link
Contributor

@nickolas-deboom nickolas-deboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

5 participants