mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00:00
Dont replace project name spaces with underlines (#7455)
This commit is contained in:
parent
f87d9be60d
commit
749f664330
@ -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…
x
Reference in New Issue
Block a user