Skip to content

Commit a006278

Browse files
authored
Merge pull request #152 from puddly/rc
0.18.3 Release
2 parents 8dec8f4 + a4e3a72 commit a006278

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

zigpy_xbee/__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 = 18
3-
PATCH_VERSION = "2"
3+
PATCH_VERSION = "3"
44
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
55
__version__ = f"{__short_version__}.{PATCH_VERSION}"

zigpy_xbee/api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
LOGGER = logging.getLogger(__name__)
1717

18-
AT_COMMAND_TIMEOUT = 1
18+
AT_COMMAND_TIMEOUT = 3
1919
REMOTE_AT_COMMAND_TIMEOUT = 30
2020
PROBE_TIMEOUT = 45
2121

@@ -347,6 +347,10 @@ async def _reconnect_till_done(self) -> None:
347347
)
348348

349349
def close(self):
350+
if self._conn_lost_task:
351+
self._conn_lost_task.cancel()
352+
self._conn_lost_task = None
353+
350354
if self._uart:
351355
self._uart.close()
352356
self._uart = None

zigpy_xbee/zigbee/application.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ async def disconnect(self):
4949
"""Shutdown application."""
5050
if self._api:
5151
self._api.close()
52+
self._api = None
5253

5354
async def connect(self):
5455
self._api = await zigpy_xbee.api.XBee.new(self, self._config[CONF_DEVICE])
@@ -191,11 +192,11 @@ async def force_remove(self, dev):
191192
async def add_endpoint(self, descriptor: zdo_t.SimpleDescriptor) -> None:
192193
"""Register a new endpoint on the device."""
193194
self._device.replacement["endpoints"][descriptor.endpoint] = {
194-
"device_type": descriptor.device_type,
195-
"profile_id": descriptor.profile,
196-
"input_clusters": descriptor.input_clusters,
197-
"output_clusters": descriptor.output_clusters,
198-
}
195+
"device_type": descriptor.device_type,
196+
"profile_id": descriptor.profile,
197+
"input_clusters": descriptor.input_clusters,
198+
"output_clusters": descriptor.output_clusters,
199+
}
199200
self._device.add_endpoint(descriptor.endpoint)
200201

201202
async def _get_association_state(self):

0 commit comments

Comments
 (0)