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

Improving linked busses support #710

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

Jocke4f
Copy link
Collaborator

@Jocke4f Jocke4f commented Aug 1, 2024

Improved the support for linked busses by updating:

  • function getDeviceStates - added linked busses logic
  • function UpdateDeviceState - changed id to sourceId and added linked busses logic
  • function initializeSource - changed id to sourceId

This PR solves #704.

As a consequence this PR improves RunAction when defining multiple devices for the same source.

As a consequence the code to check the status for linked busses is now duplicated. This can later be improved.

Replaced id with sourceId in function UpdateDeviceState and function UpdateDeviceState so that RunAction works even for linked busses.
Removed comment text.
Added check for all sources in linked busses in function getDeviceStates.
@Jocke4f Jocke4f added the bug Something isn't working label Aug 1, 2024
@josephdadams josephdadams merged commit eed77de into josephdadams:master Aug 1, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants