diff --git a/midealocal/message.py b/midealocal/message.py index 7b082ec7..6e207aed 100644 --- a/midealocal/message.py +++ b/midealocal/message.py @@ -784,11 +784,14 @@ def __init__(self, message: bytearray) -> None: super().__init__() if message is None or len(message) < self.HEADER_LENGTH + 1: raise MessageLenError + _LOGGER.debug("MessageResponse - message: %s", message) self._header = message[: self.HEADER_LENGTH] + _LOGGER.debug("MessageResponse - header: %s", self._header) self.protocol_version = self._header[-2] self.message_type = MessageType(self._header[-1]) self.device_type = DeviceType(self._header[2]) body = message[self.HEADER_LENGTH : -1] + _LOGGER.debug("MessageResponse - body : %s", body) self._body = MessageBody(body) self.body_type = self._body.body_type