mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
upgrade tibber libary to 0.4.0 to use aiohttp 3.0 (#13164)
This commit is contained in:
parent
989638b266
commit
75fb8ef98b
@ -20,7 +20,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
REQUIREMENTS = ['pyTibber==0.3.2']
|
||||
REQUIREMENTS = ['pyTibber==0.4.0']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -76,7 +76,7 @@ class TibberSensor(Entity):
|
||||
price_time = dt_util.as_utc(dt_util.parse_datetime(key))
|
||||
time_diff = (now - price_time).total_seconds()/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
|
||||
return True
|
||||
return False
|
||||
|
@ -645,7 +645,7 @@ pyHS100==0.3.0
|
||||
pyRFXtrx==0.21.1
|
||||
|
||||
# homeassistant.components.sensor.tibber
|
||||
pyTibber==0.3.2
|
||||
pyTibber==0.4.0
|
||||
|
||||
# homeassistant.components.switch.dlink
|
||||
pyW215==0.6.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user