Skip to content

Commit f067fc4

Browse files
committed
devices: zigbee: add node parent as an XBee parameter to update
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent 0d5eb26 commit f067fc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

digi/xbee/devices.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@ def update_device_data_from(self, device):
242242
if new_hw:
243243
self._hardware_version = new_hw
244244

245+
if isinstance(self, (ZigBeeDevice, RemoteZigBeeDevice)):
246+
new_parent = device.parent
247+
if new_parent:
248+
self.parent = new_parent
249+
updated = True
250+
245251
return updated
246252

247253
def get_parameter(self, parameter, parameter_value=None, apply=None):

0 commit comments

Comments
 (0)