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

Add hyphen to supported name characters (#1223)

Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Ian Leeder
2020-07-30 08:02:34 +10:00
committed by GitHub
parent 3f6f3c14c4
commit aea2e9a6bb
6 changed files with 8 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ ALLOW_EXTRA = vol.ALLOW_EXTRA
UNDEFINED = vol.UNDEFINED
RequiredFieldInvalid = vol.RequiredFieldInvalid
ALLOWED_NAME_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_'
ALLOWED_NAME_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_-'
RESERVED_IDS = [
# C++ keywords http://en.cppreference.com/w/cpp/keyword