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