Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arsaboo/homeassistant-config
/ format_mac
Function
format_mac
python_scripts/shellies_discovery.py:1554–1556 ·
view source on GitHub ↗
Format the mac address string.
(mac)
Source
from the content-addressed store, hash-verified
1552
1553
1554
def
format_mac(mac):
1555
""
"Format the mac address string."
""
1556
return
":"
.join(mac[i : i + 2]
for
i in range(0, 12, 2))
1557
1558
1559
def
parse_version(version):
Callers
1
shellies_discovery.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected