Skip to content
Merged
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
7 changes: 4 additions & 3 deletions zigpy_deconz/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ def _api_frame(self, name, *args):
return data

def data_received(self, data):
if data[0] not in self._commands_by_id:
LOGGER.debug("Unknown command received: %s", data[0])
try:
command = self._commands_by_id[data[0]]
except KeyError:
LOGGER.debug("Unknown command received: 0x%02x", data[0])
return
command = self._commands_by_id[data[0]]
seq = data[1]
try:
status = STATUS(data[2])
Expand Down