Skip to content

Commit cf9127a

Browse files
committed
Revert "Exit when network is not online"
This reverts commit 9d5ba85.
1 parent b67586b commit cf9127a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise_usb/connection/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ async def pair_plus_device(self, mac: str) -> bool:
220220
raise NodeError(
221221
"Pairing failed, StickNetworkInfoResponse is None"
222222
) from None
223+
_LOGGER.debug("HOI NetworkInfoRequest done")
223224

224225
# Init Stick
225226
try:
@@ -228,8 +229,7 @@ async def pair_plus_device(self, mac: str) -> bool:
228229
raise NodeError(
229230
f"Pairing failed, failed to initialize Stick: {exc}"
230231
) from exc
231-
if not self._network_online:
232-
raise NodeError("Pairing failed, network is not online")
232+
_LOGGER.debug("HOI Init done")
233233

234234
try:
235235
request = CirclePlusConnectRequest(self.send, bytes(mac, UTF8))
@@ -243,6 +243,8 @@ async def pair_plus_device(self, mac: str) -> bool:
243243
if response.allowed.value != 1:
244244
raise NodeError("Pairing failed, not allowed")
245245

246+
_LOGGER.debug("HOI PlusConnectRequest done")
247+
246248
return True
247249

248250
async def get_node_details(

0 commit comments

Comments
 (0)