mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
Dont replace project name spaces with underlines (#7455)
This commit is contained in:
parent
435789a960
commit
857a3dcf72
@ -100,9 +100,6 @@ def valid_include(value):
|
|||||||
def valid_project_name(value: str):
|
def valid_project_name(value: str):
|
||||||
if value.count(".") != 1:
|
if value.count(".") != 1:
|
||||||
raise cv.Invalid("project name needs to have a namespace")
|
raise cv.Invalid("project name needs to have a namespace")
|
||||||
|
|
||||||
value = value.replace(" ", "_")
|
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user