Remove the redundant pin name validation (#13251)
* remove the redundant pin name validation * fix submodulesmaster
parent
e87d231645
commit
df794fa5cc
|
@ -143,14 +143,8 @@ def _pin_name(pin):
|
||||||
elif pin == 'NO_PIN':
|
elif pin == 'NO_PIN':
|
||||||
return None
|
return None
|
||||||
|
|
||||||
elif pin[0] in 'ABCDEFGHIJK' and pin[1].isdigit():
|
|
||||||
return pin
|
return pin
|
||||||
|
|
||||||
elif pin.startswith('LINE_PIN'):
|
|
||||||
return pin
|
|
||||||
|
|
||||||
raise ValueError(f'Invalid pin: {pin}')
|
|
||||||
|
|
||||||
|
|
||||||
def _extract_pins(pins):
|
def _extract_pins(pins):
|
||||||
"""Returns a list of pins from a comma separated string of pins.
|
"""Returns a list of pins from a comma separated string of pins.
|
||||||
|
|
Loading…
Reference in New Issue