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

[solax] Implement refresh command and improve thread safety #15958

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

theater
Copy link
Contributor

@theater theater commented Nov 25, 2023

  • Added a refresh command
  • Implemented a reentrant lock when we retrieve the data via http call so we don't do multiple calls to the same server unless the first call has returned data or timed out. There is no point to flood it as probably it's not very powerful device anyway.

@theater theater added the enhancement An enhancement or new feature for an existing add-on label Nov 25, 2023
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@lolodomo lolodomo merged commit f4aa1c6 into openhab:main Nov 27, 2023
3 checks passed
@lolodomo lolodomo added this to the 4.1 milestone Nov 27, 2023
@jlaur jlaur changed the title [solax] Implementation of refresh command and improved thread safety [solax] Implement refresh command and improve thread safety Nov 28, 2023
@theater theater deleted the solax_refresh_command branch November 28, 2023 16:26
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…penhab#15958)

* Implementation of refresh command and better multi-thread handling

---------

Signed-off-by: Konstantin Polihronov <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants