upgrade tibber libary to 0.4.0 to use aiohttp 3.0 (#13164)

This commit is contained in:
Daniel Høyer Iversen 2018-03-13 07:04:27 +01:00 committed by GitHub
parent 989638b266
commit 75fb8ef98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
from homeassistant.util import dt as dt_util from homeassistant.util import dt as dt_util
REQUIREMENTS = ['pyTibber==0.3.2'] REQUIREMENTS = ['pyTibber==0.4.0']
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -76,7 +76,7 @@ class TibberSensor(Entity):
price_time = dt_util.as_utc(dt_util.parse_datetime(key)) price_time = dt_util.as_utc(dt_util.parse_datetime(key))
time_diff = (now - price_time).total_seconds()/60 time_diff = (now - price_time).total_seconds()/60
if time_diff >= 0 and time_diff < 60: if time_diff >= 0 and time_diff < 60:
self._state = round(price_total, 2) self._state = round(price_total, 3)
self._last_updated = key self._last_updated = key
return True return True
return False return False

View File

@ -645,7 +645,7 @@ pyHS100==0.3.0
pyRFXtrx==0.21.1 pyRFXtrx==0.21.1
# homeassistant.components.sensor.tibber # homeassistant.components.sensor.tibber
pyTibber==0.3.2 pyTibber==0.4.0
# homeassistant.components.switch.dlink # homeassistant.components.switch.dlink
pyW215==0.6.0 pyW215==0.6.0