Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Nov 6, 2018
1 parent f4d3d59 commit 43ae57c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/helpers/device_registry.py
Expand Up @@ -44,7 +44,8 @@ def format_mac(mac):

if len(to_test) == 17 and to_test.count(':') == 5:
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('-', '')
elif len(to_test) == 14 and to_test.count('.') == 2:
to_test = to_test.replace('.', '')
Expand Down

0 comments on commit 43ae57c

Please sign in to comment.