1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

Disallow _ in node name (#1632)

This commit is contained in:
Peter Kuehne
2021-04-08 13:26:01 +01:00
committed by GitHub
parent 2e50e1f506
commit eaf9735eda
6 changed files with 18 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ def test_alphanumeric__invalid(value):
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)