File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
MAJOR_VERSION = 0
2
2
MINOR_VERSION = 18
3
- PATCH_VERSION = "2 "
3
+ PATCH_VERSION = "3 "
4
4
__short_version__ = f"{ MAJOR_VERSION } .{ MINOR_VERSION } "
5
5
__version__ = f"{ __short_version__ } .{ PATCH_VERSION } "
Original file line number Diff line number Diff line change 15
15
16
16
LOGGER = logging .getLogger (__name__ )
17
17
18
- AT_COMMAND_TIMEOUT = 1
18
+ AT_COMMAND_TIMEOUT = 3
19
19
REMOTE_AT_COMMAND_TIMEOUT = 30
20
20
PROBE_TIMEOUT = 45
21
21
@@ -347,6 +347,10 @@ async def _reconnect_till_done(self) -> None:
347
347
)
348
348
349
349
def close (self ):
350
+ if self ._conn_lost_task :
351
+ self ._conn_lost_task .cancel ()
352
+ self ._conn_lost_task = None
353
+
350
354
if self ._uart :
351
355
self ._uart .close ()
352
356
self ._uart = None
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ async def disconnect(self):
49
49
"""Shutdown application."""
50
50
if self ._api :
51
51
self ._api .close ()
52
+ self ._api = None
52
53
53
54
async def connect (self ):
54
55
self ._api = await zigpy_xbee .api .XBee .new (self , self ._config [CONF_DEVICE ])
@@ -191,11 +192,11 @@ async def force_remove(self, dev):
191
192
async def add_endpoint (self , descriptor : zdo_t .SimpleDescriptor ) -> None :
192
193
"""Register a new endpoint on the device."""
193
194
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
+ }
199
200
self ._device .add_endpoint (descriptor .endpoint )
200
201
201
202
async def _get_association_state (self ):
You can’t perform that action at this time.
0 commit comments