File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
import zigpy .state
14
14
import async_timeout
15
15
import zigpy .zdo .types as zdo_t
16
+ import zigpy .exceptions
16
17
from zigpy .exceptions import NetworkNotFormed
17
18
18
19
import zigpy_znp
@@ -264,7 +265,7 @@ async def start_network(self):
264
265
c .app_config .BDBCommissioningStatus .FormationFailure ,
265
266
c .app_config .BDBCommissioningStatus .Success ,
266
267
):
267
- raise RuntimeError (
268
+ raise zigpy . exceptions . FormationFailure (
268
269
f"Network formation failed: { commissioning_rsp } "
269
270
)
270
271
else :
@@ -283,7 +284,7 @@ async def start_network(self):
283
284
async with async_timeout .timeout (STARTUP_TIMEOUT ):
284
285
await started_as_coordinator
285
286
except asyncio .TimeoutError as e :
286
- raise RuntimeError (
287
+ raise zigpy . exceptions . FormationFailure (
287
288
"Network formation refused: there is too much RF interference."
288
289
" Make sure your coordinator is on a USB 2.0 extension cable and"
289
290
" away from any sources of interference, like USB 3.0 ports, SSDs,"
You can’t perform that action at this time.
0 commit comments