Skip to content

Commit a281a37

Browse files
committed
Fix logging receiving messages
1 parent 49ae959 commit a281a37

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plugwise/controller.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
UTF8_DECODE,
1919
)
2020
from plugwise.messages.requests import NodeInfoRequest, NodePingRequest, NodeRequest
21-
from plugwise.messages.responses import NodeAckSmallResponse
21+
from plugwise.messages.responses import (
22+
NodeAckResponse,
23+
NodeAckSmallResponse,
24+
NodeAckLargeResponse,
25+
)
2226
from plugwise.parser import PlugwiseParser
2327
from plugwise.util import inc_seq_id
2428

@@ -224,6 +228,10 @@ def message_handler(self, message):
224228
message.seq_id, message.ack_id, message.__class__.__name__
225229
)
226230
else:
231+
if isinstance(message, (NodeAckResponse, NodeAckLargeResponse)):
232+
self._log_status_message(message, message.ack_id)
233+
else:
234+
self._log_status_message(message)
227235
self.message_processor(message)
228236
if (
229237
message.seq_id != b"FFFF"

0 commit comments

Comments
 (0)