Skip to content

Commit ea10484

Browse files
committed
Improve docstring
1 parent f989ab3 commit ea10484

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugwise_usb/connection/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,16 @@ async def pair_plus_device(self, mac: str) -> bool:
202202
203203
According to https://roheve.wordpress.com/author/roheve/page/2/
204204
The pairing process should look like:
205-
0001 - 0002 (- 0003): StickNetworkInfoRequest - StickNetworkInfoResponse - (PlugwiseQueryCirclePlusEndResponse - @SevenW),
206-
000A - 0011: StickInitRequest - StickInitResponse,
205+
0001 - 0002 - 0003: StickNetworkInfoRequest - StickNetworkInfoResponse - NodeSpecificResponse,
206+
000A - 0011: StickInitRequest - StickInitShortResponse/StickInitResponse,
207207
0004 - 0005: CirclePlusConnectRequest - CirclePlusConnectResponse,
208208
the Plus-device will then send a NodeRejoinResponse (0061).
209209
210-
Todo(?): Does this need repeating until pairing is successful?
210+
In the first occurrence of this process a 0004 0001 .... message is sent.
211+
A StickInitShortResponse is received indicating the network is offline.
212+
In the second occurrence of this process a 0004 0101 .... message is sent.
213+
Again a StickInitShortResponse is received.
214+
In the third occurrence only 000A is sent and a StickInitResponse indicating the network is online, is received.
211215
"""
212216
_LOGGER.debug("Pair Plus-device with mac: %s", mac)
213217
if not validate_mac(mac):

0 commit comments

Comments
 (0)