Skip to content

Conversation

@alengwenus
Copy link
Contributor

@alengwenus alengwenus commented Dec 17, 2025

Proposed change

Recent changes in the lcn integration broke functionality for several users due to incorrect handling of status messages from the hardware.
See #159104, #158892, #158059

To fix this, adjustments had to be made in the underlying library as well as to the parallel updates and their frequency.
Please note: Some of the LCN status changes are pushed to HA, while others need to be polled. For the former ones, the update interval has been set to 10 minutes, which is perfectly adequate.

The dependency upgrade is in a separate PR: #159277

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

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to frontend pull request:

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 link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

Copy link
Contributor

Copilot AI left a comment

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 fixes broken functionality in the LCN integration caused by incorrect handling of status messages from the hardware. The fix involves upgrading the pypck library dependency from 0.9.7 to 0.9.8 and adjusting the parallel updates and scan intervals across multiple platforms.

Key changes:

  • Updates pypck dependency to version 0.9.8 to fix underlying library issues
  • Changes PARALLEL_UPDATES from 0 to 2 across all affected platforms
  • Increases SCAN_INTERVAL from 1 minute to 10 minutes for platforms with push-based updates (switch, light, binary_sensor)

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
requirements_all.txt Updates pypck dependency version to 0.9.8
requirements_test_all.txt Updates pypck test dependency version to 0.9.8
homeassistant/components/lcn/manifest.json Updates pypck requirement in integration manifest
homeassistant/components/lcn/binary_sensor.py Sets PARALLEL_UPDATES to 2 and SCAN_INTERVAL to 10 minutes
homeassistant/components/lcn/climate.py Sets PARALLEL_UPDATES to 2
homeassistant/components/lcn/cover.py Sets PARALLEL_UPDATES to 2
homeassistant/components/lcn/light.py Sets PARALLEL_UPDATES to 2 and SCAN_INTERVAL to 10 minutes
homeassistant/components/lcn/scene.py Sets PARALLEL_UPDATES to 2
homeassistant/components/lcn/sensor.py Sets PARALLEL_UPDATES to 2
homeassistant/components/lcn/switch.py Sets PARALLEL_UPDATES to 2 and SCAN_INTERVAL to 10 minutes

@home-assistant home-assistant bot marked this pull request as draft December 17, 2025 15:19
@home-assistant
Copy link

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@alengwenus alengwenus marked this pull request as ready for review December 17, 2025 15:30
@home-assistant home-assistant bot requested a review from zweckj December 17, 2025 15:30
@zweckj zweckj merged commit 6991e01 into home-assistant:dev Dec 18, 2025
36 checks passed
@alengwenus alengwenus deleted the dev-lcn-fix-updates branch December 18, 2025 07:39
@Ojoachim71
Copy link

Ojoachim71 commented Dec 18, 2025

@homeassistant

Dear home-assistant team,

please release the fix as soon as possible, as it is very annoying to "loose" connections every few minutes/hours. Thank you so much!

@zweckj zweckj added this to the 2025.12.4 milestone Dec 18, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants