Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arsaboo/homeassistant-config
/ clean_name
Function
clean_name
python_scripts/shellies_discovery.py:1544–1546 ·
view source on GitHub ↗
Clean entity/device name.
(string)
Source
from the content-addressed store, hash-verified
1542
1543
1544
def
clean_name(string):
1545
""
"Clean entity/device name."
""
1546
return
string.replace(
"-"
,
" "
).replace(
"_"
,
" "
).replace(
"/"
,
" "
).title()
1547
1548
1549
def
make_id(string):
Callers
1
shellies_discovery.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected