Skip to content

Commit 726bac6

Browse files
committed
Remove useless warning message
1 parent 593b6fc commit 726bac6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugwise_usb/connection/sender.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ async def write_request_to_port(self, request: PlugwiseRequest) -> None:
147147
async def _process_stick_response(self, response: StickResponse) -> None:
148148
"""Process stick response."""
149149
if self._stick_response is None or self._stick_response.done():
150-
_LOGGER.warning("No open request for %s", str(response))
151150
return
152151
_LOGGER.debug("Received %s as reply to %s", response, self._current_request)
153152
self._stick_response.set_result(response)

plugwise_usb/messages/requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _response_timeout_expired(self, stick_timeout: bool = False) -> None:
215215
if self._response_future.done():
216216
return
217217
if stick_timeout:
218-
_LOGGER.info("USB-stick responded with time out to %s", self)
218+
_LOGGER.info("USB-stick response timeout to %s", self)
219219
else:
220220
_LOGGER.info(
221221
"No response received for %s within %s seconds", self, NODE_TIME_OUT
@@ -225,7 +225,7 @@ def _response_timeout_expired(self, stick_timeout: bool = False) -> None:
225225
self._unsubscribe_from_node()
226226
if stick_timeout:
227227
self._response_future.set_exception(
228-
StickTimeout(f"USB-stick responded with time out to {self}")
228+
StickTimeout(f"USB-stick response timeout to {self}")
229229
)
230230
else:
231231
self._response_future.set_exception(

0 commit comments

Comments
 (0)