From 6d7dbe55368c5a1c40060e287f32f81a969ba342 Mon Sep 17 00:00:00 2001 From: Jacob Mansfield Date: Thu, 8 Mar 2018 23:25:10 +0000 Subject: [PATCH] Show the error message when Zabbix fails to log in (#12985) * Show the error message when Zabbix fails to log in * More verbose name for exception variable --- homeassistant/components/zabbix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zabbix.py b/homeassistant/components/zabbix.py index adbf34a474c..ea5a6d85d6b 100644 --- a/homeassistant/components/zabbix.py +++ b/homeassistant/components/zabbix.py @@ -52,8 +52,8 @@ def setup(hass, config): try: zapi.login(username, password) _LOGGER.info("Connected to Zabbix API Version %s", zapi.api_version()) - except ZabbixAPIException: - _LOGGER.error("Unable to login to the Zabbix API") + except ZabbixAPIException as login_exception: + _LOGGER.error("Unable to login to the Zabbix API: %s", login_exception) return False hass.data[DOMAIN] = zapi