diff --git a/homeassistant/components/tibber/__init__.py b/homeassistant/components/tibber/__init__.py index 8022902c580..38605e949bb 100644 --- a/homeassistant/components/tibber/__init__.py +++ b/homeassistant/components/tibber/__init__.py @@ -16,7 +16,7 @@ from homeassistant.const import (EVENT_HOMEASSISTANT_STOP, CONF_ACCESS_TOKEN, from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_get_clientsession -REQUIREMENTS = ['pyTibber==0.7.2'] +REQUIREMENTS = ['pyTibber==0.7.4'] DOMAIN = 'tibber' @@ -47,6 +47,9 @@ async def async_setup(hass, config): await tibber_connection.update_info() except (asyncio.TimeoutError, aiohttp.ClientError): return False + except tibber.InvalidLogin as exp: + _LOGGER.error("Failed to login. %s", exp) + return False for component in ['sensor', 'notify']: discovery.load_platform(hass, component, DOMAIN, diff --git a/requirements_all.txt b/requirements_all.txt index 91c6e345e2c..7eaa8bf696e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -800,7 +800,7 @@ pyRFXtrx==0.23 pySwitchmate==0.4.2 # homeassistant.components.tibber -pyTibber==0.7.2 +pyTibber==0.7.4 # homeassistant.components.switch.dlink pyW215==0.6.0