MCPcopy
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
1544def clean_name(string):
1545 """Clean entity/device name."""
1546 return string.replace("-", " ").replace("_", " ").replace("/", " ").title()
1547
1548
1549def make_id(string):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected