Skip to content

Commit de9d067

Browse files
committed
Fix logging parameters
1 parent 8f1cb29 commit de9d067

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugwise_usb/messages/requests.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _response_timeout_expired(self, stick_timeout: bool = False) -> None:
167167
)
168168
)
169169
else:
170-
_LOGGER.warning("No response received for %s within timeout (%s seconds)", self, self._response, NODE_TIME_OUT)
170+
_LOGGER.warning("No response received for %s within timeout (%s seconds)", self, NODE_TIME_OUT)
171171
self._response_future.set_exception(
172172
NodeTimeout(
173173
f"No device response to {self} within {NODE_TIME_OUT} seconds"
@@ -216,7 +216,6 @@ async def _process_stick_response(self, stick_response: StickResponse) -> None:
216216
return
217217
if self._seq_id is None or self._seq_id != stick_response.seq_id:
218218
return
219-
_LOGGER.warning("%s for request %s id %d", stick_response, self, self._id)
220219
if stick_response.ack_id == StickResponseType.TIMEOUT:
221220
self._response_timeout_expired(stick_timeout=True)
222221
elif stick_response.ack_id == StickResponseType.FAILED:
@@ -231,11 +230,10 @@ async def _process_stick_response(self, stick_response: StickResponse) -> None:
231230
pass
232231
else:
233232
_LOGGER.debug(
234-
"Unknown StickResponseType %s at %s for request %s id %d",
233+
"Unknown StickResponseType %s at %s for request %s",
235234
str(stick_response.ack_id),
236235
stick_response,
237-
self,
238-
self._id
236+
self
239237
)
240238

241239
@property

0 commit comments

Comments
 (0)