Skip to content

Comments

Remove Status.SUCCESS guards everywhere#678

Draft
TheJulianJES wants to merge 4 commits intozigpy:devfrom
TheJulianJES:tjj/remove_status_guards
Draft

Remove Status.SUCCESS guards everywhere#678
TheJulianJES wants to merge 4 commits intozigpy:devfrom
TheJulianJES:tjj/remove_status_guards

Conversation

@TheJulianJES
Copy link
Contributor

DO NOT MERGE

Proposed change

This removes all(!) Status.SUCCESS checks for zigpy requests from ZHA.

ZCL errors like Status.READ_ONLY (or possibly just Status.FAILURE) when writing an attribute and errors like UNSUP_CLUSTER_COMMAND don't seem to be raised in zigpy, but instead be returned in the request result. Similar story for attribute reporting configuration and so on.

As this PR removes it for everything, it definitely breaks stuff if that happens. We may be able to selectively remove guards in the platforms for now, like light.
It might be good to adjust zigpy to always raise exceptions if it doesn't get a positive response from the device.

Additional information

Related PR:

Related discussion in:

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.

1 participant