mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
[max6921] improved validation error message (as suggested in PR)
This commit is contained in:
parent
cc7106333c
commit
32feba2abd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue