mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
commit
7209dd8bae
2 changed files with 5 additions and 1 deletions
|
@ -108,6 +108,10 @@ def validate_gpio_pin(value):
|
||||||
board = CORE.data[KEY_ESP32][KEY_BOARD]
|
board = CORE.data[KEY_ESP32][KEY_BOARD]
|
||||||
board_pins = boards.ESP32_BOARD_PINS.get(board, {})
|
board_pins = boards.ESP32_BOARD_PINS.get(board, {})
|
||||||
|
|
||||||
|
# Resolved aliased board pins (shorthand when two boards have the same pin configuration)
|
||||||
|
while isinstance(board_pins, str):
|
||||||
|
board_pins = boards.ESP32_BOARD_PINS[board_pins]
|
||||||
|
|
||||||
if value in board_pins.values():
|
if value in board_pins.values():
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2022.11.4"
|
__version__ = "2022.11.5"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue