Convert NullBin from int

This commit is contained in:
Jan Petykiewicz 2021-11-12 14:01:18 -08:00
parent 28eb68f57a
commit 411ad512e5

View File

@ -102,6 +102,8 @@ def write_devices(devices: Sequence[Device], el_map: ElementTree.Element) -> Non
val = f'{val:d}' val = f'{val:d}'
elif field == 'CreateDate': elif field == 'CreateDate':
val = val.strftime('%Y%m%d%H%M%S%f')[:-3] val = val.strftime('%Y%m%d%H%M%S%f')[:-3]
elif field == 'NullBin' and device.BinType == 'Decimal':
val = f'{val:d}'
el_device.set(field, val) el_device.set(field, val)