grivkees / homebridge-carrier-infinity

Standalone homebridge plugin for Carrier Infinity / Bryant Evolution / ICP Brands Ion thermostats.
MIT License
23 stars 6 forks source link

fix(api): fix apparent bouncing between new and old value during HK change #488

Closed grivkees closed 7 months ago

grivkees commented 7 months ago

Old code delayed updating local data until we were ready to push (after delay to batch updates). That caused issues where HK could appear to bounce back and forth if HK tried to update from the homebridge plugin before we had actually pushed the data.

This PR updates local api config immediately, which means HK refreshes will get the right data. It also means accessories that read/write to the same data (activity switches, multi zone systems) should get the right data now if they update while the push is pending. A future update can now actively pub/sub these changes to those accessories as well.

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 1.6.11 :tada:

The release is available on:

Your semantic-release bot :package::rocket: