From 43ae57cc59d4cc0b1faacbbb1022a034b3bdd322 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 6 Nov 2018 19:27:52 +0100 Subject: [PATCH] Lint --- homeassistant/helpers/device_registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/device_registry.py b/homeassistant/helpers/device_registry.py index 2314ea77516d..78d15e57f38e 100644 --- a/homeassistant/helpers/device_registry.py +++ b/homeassistant/helpers/device_registry.py @@ -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('.', '')