Skip to content

Commit e1d299a

Browse files
committed
Revert to original response.ack_id
1 parent e2fefe2 commit e1d299a

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

plugwise_usb/nodes/node.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -648,18 +648,11 @@ async def reset_node(self) -> None:
648648
self._send, self._mac_in_bytes, self.node_type.value, timeout
649649
)
650650
response = await request.send()
651-
if (
652-
response is None
653-
or getattr(response, "response_type", None)
654-
!= NodeResponseType.NODE_RESET_ACK
655-
):
656-
ack = getattr(response, "ack_id", None)
657-
rtype = getattr(response, "response_type", None)
651+
if response is None or response.ack_id != NodeResponseType.NODE_RESET_ACK:
658652
_LOGGER.warning(
659-
"Node %s reset not acknowledged (ack_id=%s, response_type=%s)",
653+
"Node %s reset not acknowledged (response=%s)",
660654
self._mac_in_str,
661-
ack,
662-
rtype,
655+
getattr(response, "ack_id", None),
663656
)
664657

665658
async def unload(self) -> None:

0 commit comments

Comments
 (0)