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:
@@ -5,7 +5,7 @@ esphome:
|
||||
build_path: build/test4
|
||||
|
||||
substitutions:
|
||||
devicename: test4
|
||||
devicename: test-4
|
||||
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user