mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
ESP32 GPIOs 33 to 38 can be used for deep sleep wakeup (#911)
This commit is contained in:
parent
74aca2137b
commit
b5714cd70f
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from esphome.const import CONF_ID, CONF_MODE, CONF_NUMBER, CONF_PINS, CONF_RUN_C
|
|||
|
||||
|
||||
def validate_pin_number(value):
|
||||
valid_pins = [0, 2, 4, 12, 13, 14, 15, 25, 26, 27, 32, 39]
|
||||
valid_pins = [0, 2, 4, 12, 13, 14, 15, 25, 26, 27, 32, 33, 34, 35, 36, 37, 38, 39]
|
||||
if value[CONF_NUMBER] not in valid_pins:
|
||||
raise cv.Invalid(u"Only pins {} support wakeup"
|
||||
u"".format(', '.join(str(x) for x in valid_pins)))
|
||||
|
|
Loading…
Reference in a new issue