Skip to content

Bump uiprotect to 15.4.2#175712

Merged
TheJulianJES merged 2 commits into
home-assistant:devfrom
RaHehl:bump-uiprotect-15.4.2
Jul 6, 2026
Merged

Bump uiprotect to 15.4.2#175712
TheJulianJES merged 2 commits into
home-assistant:devfrom
RaHehl:bump-uiprotect-15.4.2

Conversation

@RaHehl

@RaHehl RaHehl commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Breaking change

Proposed change

Bumps uiprotect from 15.4.1 to 15.4.2.

15.4.2 fixes the public integration websocket keepalive: it emits CONNECTED as soon as the connection is established (instead of only after the first data frame), and sets an aiohttp heartbeat on the two public websockets. This keeps upstream reads flowing so the UniFi OS nginx reverse proxy's proxy_read_timeout 10m no longer idle-drops the quiet subscribe/devices channel — which was making the Alarm Manager and other public-API entities go unavailable ~10 minutes after arm/disarm on low-traffic setups.

Changelog: v15.4.1...v15.4.2 (uilibs/uiprotect#1071).

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

Copilot AI review requested due to automatic review settings July 5, 2026 18:44
@home-assistant home-assistant Bot added cla-signed dependency Pull requests marked as a dependency upgrade integration: unifiprotect small-pr PRs with less than 30 lines. Top 200 Integration is ranked within the top 200 by usage by-code-owner Quality Scale: platinum labels Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 bumps the uiprotect library from 15.4.1 to 15.4.2 for the UniFi Protect integration. The new release (published 2026-07-05, containing uilibs/uiprotect#1071) fixes the public integration websocket keepalive so the UniFi OS nginx reverse proxy no longer idle-drops the quiet subscribe/devices channel. This resolves the reported issue (#175610) where the Alarm Manager and other public-API entities went unavailable ~10 minutes after arm/disarm on low-traffic setups, since those entities' availability is tied to last_public_update_success / the public devices websocket health.

Changes:

  • Bump uiprotect pin to 15.4.2 in the integration manifest.
  • Regenerate the corresponding pin in requirements_all.txt.

Reviewed changes

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

File Description
homeassistant/components/unifiprotect/manifest.json Updates the requirements pin to uiprotect==15.4.2.
requirements_all.txt Regenerated dependency pin to match the manifest (uiprotect==15.4.2).

Verification notes:

  • Confirmed uiprotect==15.4.2 is a real, published release (v15.4.2, released 2026-07-05) whose release notes match the PR description's fix.
  • Confirmed no leftover references to uiprotect==15.4.1 remain in the repository.
  • Confirmed the PR contains only the changes required for the version bump, with no unrelated code changes bundled in.

@TheJulianJES TheJulianJES left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@TheJulianJES TheJulianJES added this to the 2026.7.2 milestone Jul 6, 2026
@TheJulianJES TheJulianJES merged commit 12c1014 into home-assistant:dev Jul 6, 2026
86 of 87 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

by-code-owner cla-signed dependency Pull requests marked as a dependency upgrade integration: unifiprotect Quality Scale: platinum small-pr PRs with less than 30 lines. Top 200 Integration is ranked within the top 200 by usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UniFi Protect Alarm Manager entity becomes unavailable ~10 minutes after arm/disarm

3 participants