Bump ZHA to 1.4.0 - #172357
Bump ZHA to 1.4.0#172357
Conversation
|
Hey there @dmulcahey, @Adminiuga, @TheJulianJES, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Pull request overview
This pull request bumps the ZHA dependency to 1.4.0 and updates the Home Assistant ZHA integration and tests to align with ZHA’s refactored entity/cluster model.
Changes:
- Bump
zhafrom 1.3.1 to 1.4.0 across manifest and consolidated requirements. - Update ZHA siren/websocket reconfigure plumbing and device actions to match the new ZHA library APIs.
- Refresh ZHA tests and diagnostics snapshots for the new library output/behavior.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/components/zha/test_websocket_api.py | Updates test events and handler calls for the new device/cluster reconfigure events. |
| tests/components/zha/test_siren.py | Updates siren tests to use new ZHA siren enums and expected IAS WD request kwargs. |
| tests/components/zha/test_device_action.py | Adjusts action test to emit events via zigpy cluster listeners instead of cluster handlers. |
| tests/components/zha/test_cover.py | Updates cover test expectations for attribute reads under the new ZHA behavior. |
| tests/components/zha/snapshots/test_diagnostics.ambr | Updates diagnostics snapshot output/version for ZHA 1.4.0. |
| requirements_all.txt | Bumps pinned zha version to 1.4.0. |
| homeassistant/components/zha/websocket_api.py | Adapts websocket/admin services and schemas to new siren/platform APIs and reconfigure signal. |
| homeassistant/components/zha/siren.py | Switches siren tone constants to ZHA-provided enums. |
| homeassistant/components/zha/manifest.json | Bumps integration requirement to zha==1.4.0. |
| homeassistant/components/zha/helpers.py | Refactors reconfigure event forwarding and filters virtual platform entities; improves error translation. |
| homeassistant/components/zha/device_action.py | Reworks available actions and execution to use cluster IDs and zigpy/zhaquirks types. |
| homeassistant/components/zha/const.py | Adds dispatcher signal constant for device reconfigure progress events. |
| @@ -73,24 +65,18 @@ | |||
| DEFAULT_ACTION_SCHEMA, | |||
| ) | |||
|
|
|||
| DEVICE_ACTIONS = { | |||
| CLUSTER_HANDLER_IAS_WD: [ | |||
| # Maps a cluster_id the device must expose to the available actions. | |||
| DEVICE_ACTIONS_BY_CLUSTER_ID: dict[int, list[dict[str, str]]] = { | |||
| IasWd.cluster_id: [ | |||
| {CONF_TYPE: ACTION_SQUAWK, CONF_DOMAIN: DOMAIN}, | |||
| {CONF_TYPE: ACTION_WARN, CONF_DOMAIN: DOMAIN}, | |||
| ], | |||
| CLUSTER_HANDLER_INOVELLI: [ | |||
| INOVELLI_CLUSTER_ID: [ | |||
| {CONF_TYPE: INOVELLI_ALL_LED_EFFECT, CONF_DOMAIN: DOMAIN}, | |||
| {CONF_TYPE: INOVELLI_INDIVIDUAL_LED_EFFECT, CONF_DOMAIN: DOMAIN}, | |||
| ], | |||
| } | |||
TheJulianJES
left a comment
There was a problem hiding this comment.
Everything still seems to work fine. Changes look good. The hassfest icon regeneratiron test failure is unrelated and also fails on dev
|
@frenck Can we get this PR into the beta as well? Or do you want it in b1? I just merged |
Sorry, didn't notice that one. B1, as B0 was not possible for me to wait any longer. ../Frenck |
Proposed change
This PR bumps ZHA from 1.3.1 to 1.4.0.
This is a major internal refactor of ZHA that more tightly couples entities to clusters. It should not result in any user-visible changes.
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: