Skip to content

Commit 62d4144

Browse files
committed
increase probing timeout, fix #68
1 parent 8f95aaa commit 62d4144

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

zigpy_zigate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAJOR_VERSION = 0
22
MINOR_VERSION = 7
3-
PATCH_VERSION = '2'
3+
PATCH_VERSION = '3'
44
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
55
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)

zigpy_zigate/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
LOGGER = logging.getLogger(__name__)
1818

1919
COMMAND_TIMEOUT = 1.5
20+
PROBE_TIMEOUT = 3.0
2021

2122
RESPONSES = {
2223
0x004D: (t.NWK, t.EUI64, t.uint8_t, t.uint8_t),
@@ -254,7 +255,7 @@ async def probe(cls, device_config: Dict[str, Any]) -> bool:
254255
"""Probe port for the device presence."""
255256
api = cls(zigpy_zigate.config.SCHEMA_DEVICE(device_config))
256257
try:
257-
await asyncio.wait_for(api._probe(), timeout=COMMAND_TIMEOUT)
258+
await asyncio.wait_for(api._probe(), timeout=PROBE_TIMEOUT)
258259
return True
259260
except (
260261
asyncio.TimeoutError,

0 commit comments

Comments
 (0)