don't convert ascii BinCode to int

This commit is contained in:
jan 2023-07-13 14:10:49 -07:00
parent e47bff3204
commit 9d01997275

View File

@ -99,7 +99,7 @@ def read_devices(el_map: ElementTree.Element) -> list[Device]:
if bin_type == 'Decimal': if bin_type == 'Decimal':
bin_code = int(attrib['BinCode']) bin_code = int(attrib['BinCode'])
else: else:
bin_code = int(attrib['BinCode']) bin_code = attrib['BinCode']
if bin_code in device.bin_pass: if bin_code in device.bin_pass:
logger.error(f'Bin code {bin_code} was repeated; ignoring later entry!') logger.error(f'Bin code {bin_code} was repeated; ignoring later entry!')