Skip to content

Improve state handling - #1

Merged
DutchmanNL merged 2 commits into
mainfrom
improveStateHandling
Sep 15, 2025
Merged

Improve state handling#1
DutchmanNL merged 2 commits into
mainfrom
improveStateHandling

Conversation

@DutchmanNL

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings September 15, 2025 22:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves state handling in the ioBroker JSON Explorer by optimizing state updates to only occur when values change, reducing CPU usage.

  • Updates state setting method from setStateAsync to setStateChangeAsync
  • Bumps package version to 0.1.17
  • Updates dependencies and GitHub Actions version

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
jsonExplorer.js Changed state update method to only set state when value changes
package.json Version bump and ESLint update
README.md Added changelog entry for the optimization
.github/workflows/test-and-release.yml Updated GitHub Actions checkout version

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DutchmanNL
DutchmanNL merged commit 9960db7 into main Sep 15, 2025
6 checks passed
DutchmanNL added a commit that referenced this pull request Sep 16, 2025
* dependencyUpdate

* only set state if changed reducing CPU usage

---------

Co-authored-by: Rafał Drozda <rafal.drozda@ing.com>
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.

2 participants