From a6f341f06ac9612c58e82ff68af57b28c70cfabf Mon Sep 17 00:00:00 2001 From: Dale Higgs Date: Sat, 21 Jan 2017 01:39:50 -0600 Subject: [PATCH] Add exit code to check_config script (#5471) --- homeassistant/scripts/check_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/scripts/check_config.py b/homeassistant/scripts/check_config.py index 986630e4db0..19dc275e163 100644 --- a/homeassistant/scripts/check_config.py +++ b/homeassistant/scripts/check_config.py @@ -146,7 +146,7 @@ def run(script_args: List) -> int: print(' -', skey + ':', sval, color('cyan', '[from:', flatsecret .get(skey, 'keyring') + ']')) - return 0 + return len(res['except']) def check(config_path):