diff --git a/homeassistant/components/sensor/tibber.py b/homeassistant/components/sensor/tibber.py index 0ba470ca778..bc3951f0dea 100644 --- a/homeassistant/components/sensor/tibber.py +++ b/homeassistant/components/sensor/tibber.py @@ -45,11 +45,12 @@ async def async_setup_platform(hass, config, async_add_entities, except aiohttp.ClientError as err: _LOGGER.error("Error connecting to Tibber home: %s ", err) raise PlatformNotReady() - dev.append(TibberSensorElPrice(home)) + if home.has_active_subscription: + dev.append(TibberSensorElPrice(home)) if home.has_real_time_consumption: dev.append(TibberSensorRT(home)) - async_add_entities(dev, False) + async_add_entities(dev, True) class TibberSensorElPrice(Entity): diff --git a/homeassistant/components/tibber/__init__.py b/homeassistant/components/tibber/__init__.py index 8967021a0cf..8492596332a 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.9.0'] +REQUIREMENTS = ['pyTibber==0.9.1'] DOMAIN = 'tibber' diff --git a/requirements_all.txt b/requirements_all.txt index a1e5c2512bf..ae384c756cf 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -879,7 +879,7 @@ pyRFXtrx==0.23 pySwitchmate==0.4.4 # homeassistant.components.tibber -pyTibber==0.9.0 +pyTibber==0.9.1 # homeassistant.components.switch.dlink pyW215==0.6.0