Skip to content

Commit 00d9735

Browse files
committed
Connected and initialized is not required
1 parent b4ca4d5 commit 00d9735

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

plugwise_usb/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,8 @@ async def initialize(self, create_root_cache_folder: bool = False) -> None:
278278
if self._cache_enabled:
279279
await self._network.initialize_cache()
280280

281-
@raise_not_connected
282-
@raise_not_initialized
283281
async def plus_pair_request(self, mac: str) -> bool:
284282
"""Send a pair request to a Plus device."""
285-
if self._network is None:
286-
raise StickError("Cannot pair when network is not initialized")
287-
288283
return await self._network.pair_plus_device(mac)
289284

290285
@raise_not_connected

0 commit comments

Comments
 (0)