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

fix: Fix availability blocking other extensions startup #23316

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Conversation

Koenkk
Copy link
Owner

@Koenkk Koenkk commented Jul 10, 2024

Fixes the availability from blocking other extensions to startup when at least 1 device is unavailable on startup.

Fixes #23266

@Koenkk Koenkk requested a review from Nerivec July 10, 2024 19:50
}

private removeFromPingQueue(device: Device): void {
const index = this.pingQueue.findIndex((d) => d.ieeeAddr === device.ieeeAddr);
index != -1 && this.pingQueue.splice(index, 1);
}

private availabilityEnabledEntities(): (Device | Group)[] {
Copy link
Collaborator

@Nerivec Nerivec Jul 11, 2024

Choose a reason for hiding this comment

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

This creates a double-loop since the result is also always for looping over. Best to leave it "in-place" without this function. Especially since one appears to only want devices, and the other both devices and groups, so we can optimize the loop in each case instead?

@Koenkk Koenkk merged commit 8397f47 into dev Jul 11, 2024
21 checks passed
@Koenkk Koenkk deleted the fix/availability branch July 11, 2024 19:07
@alanieska
Copy link

I also report that it is not working, neither clearing the cache nor trying from another PC, nor anything from the configuration. When rolling back to an older version, it works. Not with the new one. Please fix it.

@alanieska
Copy link

to return the backup point where the z2m version is 1.39.1-1 it works fine when I update again to version 1.40.1-1 I can't see the UI again

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.

3 participants