don't convert ascii BinCode to int
This commit is contained in:
parent
e47bff3204
commit
9d01997275
1 changed files with 1 additions and 1 deletions
|
|
@ -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!')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue