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

Allow substitutions to be valid names (#4726)

This commit is contained in:
Joel Goguen
2023-05-17 00:33:08 -04:00
committed by GitHub
parent 77695aa55b
commit b3ed988119
4 changed files with 69 additions and 14 deletions

View File

@@ -3,6 +3,9 @@
__version__ = "2023.6.0-dev"
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
VALID_SUBSTITUTIONS_CHARACTERS = (
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
)
PLATFORM_ESP32 = "esp32"
PLATFORM_ESP8266 = "esp8266"