mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Lint
This commit is contained in:
parent
f4d3d5904e
commit
43ae57cc59
@ -44,7 +44,8 @@ def format_mac(mac):
|
|||||||
|
|
||||||
if len(to_test) == 17 and to_test.count(':') == 5:
|
if len(to_test) == 17 and to_test.count(':') == 5:
|
||||||
return to_test.lower()
|
return to_test.lower()
|
||||||
elif len(to_test) == 17 and to_test.count('-') == 5:
|
|
||||||
|
if len(to_test) == 17 and to_test.count('-') == 5:
|
||||||
to_test = to_test.replace('-', '')
|
to_test = to_test.replace('-', '')
|
||||||
elif len(to_test) == 14 and to_test.count('.') == 2:
|
elif len(to_test) == 14 and to_test.count('.') == 2:
|
||||||
to_test = to_test.replace('.', '')
|
to_test = to_test.replace('.', '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user