Skip to content

Commit ec7ef8f

Browse files
committed
Change log level for drop single ping request
1 parent 4aa126e commit ec7ef8f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

plugwise/controller.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,18 @@ def resend(self, seq_id):
159159
)
160160
self.send(NodePingRequest(_mac))
161161
else:
162-
_LOGGER.warning(
163-
"Drop single %s to %s ",
164-
_request,
165-
_mac,
166-
)
162+
if isinstance(self.expected_responses[seq_id][0], NodePingRequest):
163+
_LOGGER.info(
164+
"Drop single %s to %s ",
165+
_request,
166+
_mac,
167+
)
168+
else:
169+
_LOGGER.warning(
170+
"Drop single %s to %s ",
171+
_request,
172+
_mac,
173+
)
167174
del self.expected_responses[seq_id]
168175

169176
def _send_message_loop(self):

0 commit comments

Comments
 (0)