1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

Skip gpio validation (#5615)

This commit is contained in:
Andrew McFague
2024-05-15 16:49:04 -07:00
committed by GitHub
parent 7d804bf90f
commit f0ec900e48
5 changed files with 54 additions and 4 deletions

View File

@@ -327,6 +327,8 @@ def gpio_base_schema(
cv.Optional(CONF_MODE, default={}): cv.All(mode_dict, mode_validator),
}
)
if invertable:
return schema.extend({cv.Optional(CONF_INVERTED, default=False): cv.boolean})
return schema