Skip to content

Commit d2bd4b4

Browse files
committed
Override probe method to use shorter probe timeout
1 parent 0fb0506 commit d2bd4b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

zigpy_znp/zigbee/application.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ def __init__(self, config: conf.ConfigType):
118118
# Implementation of the core zigpy ControllerApplication methods #
119119
##################################################################
120120

121+
@classmethod
122+
async def probe(cls, device_config):
123+
try:
124+
async with async_timeout.timeout(PROBE_TIMEOUT):
125+
return await super().probe(device_config)
126+
except asyncio.TimeoutError:
127+
return False
128+
121129
async def connect(self):
122130
assert self._znp is None
123131

0 commit comments

Comments
 (0)