Skip to content

Commit

Permalink
Fixed bad access to error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Jan 6, 2022
1 parent b5b6c8e commit 82e3a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meross_iot/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ def _on_message(self, client, userdata, msg):
if future is not None:
_LOGGER.debug("Found a pending command waiting for response message")
if message_method == "ERROR":
err = CommandError(error_payload=message.payload)
err = CommandError(error_payload=message.get('payload'))
self._loop.call_soon_threadsafe(_handle_future, future, None, err)
elif message_method in ("SETACK", "GETACK"):
self._loop.call_soon_threadsafe(
Expand Down

0 comments on commit 82e3a59

Please sign in to comment.