MCPcopy
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
1554def 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
1559def parse_version(version):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected