[max6921] improved validation error message (as suggested in PR)

This commit is contained in:
endym 2024-09-27 16:39:19 +02:00
parent cc7106333c
commit 32feba2abd

View file

@ -70,7 +70,7 @@ def validate_out_pin_mapping(value):
mapped_out_pins = seg_pins + pos_pins
# duplicates (and indirect max. pin number)
if len(mapped_out_pins) != len(set(mapped_out_pins)):
raise cv.Invalid("OUT pin duplicate")
raise cv.Invalid("Pin numbers cannot be reused")
return value