Skip to content

Commit 6b330e9

Browse files
brefrabouwew
authored andcommitted
Do not decode strings
1 parent fdedb1b commit 6b330e9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugwise/controller.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ def _send_message_loop(self):
233233
_LOGGER.info(
234234
"Send %s to %s using seq_id %s",
235235
self.expected_responses[seq_id][0].__class__.__name__,
236-
self.expected_responses[seq_id][0].mac.decode(UTF8_DECODE),
236+
self.expected_responses[seq_id][0].mac,
237237
str(seq_id),
238238
)
239239
else:
240240
_LOGGER.info(
241241
"Resend %s to %s using seq_id %s, retry %s",
242242
self.expected_responses[seq_id][0].__class__.__name__,
243-
self.expected_responses[seq_id][0].mac.decode(UTF8_DECODE),
243+
self.expected_responses[seq_id][0].mac,
244244
str(seq_id),
245245
str(self.expected_responses[seq_id][2]),
246246
)
@@ -339,9 +339,7 @@ def _receive_timeout_loop(self):
339339
):
340340
_mac = "<unknown>"
341341
if self.expected_responses[seq_id][0].mac:
342-
_mac = self.expected_responses[seq_id][0].mac.decode(
343-
UTF8_DECODE
344-
)
342+
_mac = self.expected_responses[seq_id][0].mac
345343
_LOGGER.info(
346344
"No response within %s seconds timeout for %s to %s with sequence ID %s",
347345
str(MESSAGE_TIME_OUT),

0 commit comments

Comments
 (0)