-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Fix incorrect status updates for lcn #159251
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
Conversation
There was a problem hiding this 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 |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
967496a to
76eaead
Compare
|
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! |
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
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: