Skip to content

Fix issue for IAS ACE arm cluster command failing on response tuple out of bound in device.py #323

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions zha/zigbee/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ async def issue_cluster_command(
return # client commands don't return a response
if isinstance(response, Exception):
raise ZHAException("Failed to issue cluster command") from response
if not isinstance(response, tuple) or len(response) < 2:
_LOGGER.warning("Received unknown/unsupported response: %s", response)
return # ignore this response instead of failing
if response[1] is not ZclStatus.SUCCESS:
raise ZHAException(
f"Failed to issue cluster command with status: {response[1]}"
Expand Down
Loading