1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +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

@@ -5,7 +5,7 @@ esphome:
build_path: build/test4
substitutions:
devicename: test4
devicename: test-4
ethernet:
type: LAN8720

View File

@@ -27,7 +27,7 @@ def test_alphanumeric__invalid(value):
actual = config_validation.alphanumeric(value)
@given(value=text(alphabet=string.ascii_lowercase + string.digits + "_"))
@given(value=text(alphabet=string.ascii_lowercase + string.digits + "_-"))
def test_valid_name__valid(value):
actual = config_validation.valid_name(value)