Add current balance to hydroquebec sensor (#8138)

This commit is contained in:
Thibault Cohen 2017-06-21 10:36:20 -04:00 committed by Pascal Vizeli
parent 6398e92836
commit f3945147a4
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@ from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pyhydroquebec==1.1.0']
REQUIREMENTS = ['pyhydroquebec==1.2.0']
_LOGGER = logging.getLogger(__name__)
@ -36,6 +36,8 @@ REQUESTS_TIMEOUT = 15
MIN_TIME_BETWEEN_UPDATES = timedelta(hours=1)
SENSOR_TYPES = {
'balance':
['Balance', PRICE, 'mdi:square-inc-cash'],
'period_total_bill':
['Current period bill', PRICE, 'mdi:square-inc-cash'],
'period_length':

View File

@ -568,7 +568,7 @@ pyhik==0.1.2
pyhomematic==0.1.28
# homeassistant.components.sensor.hydroquebec
pyhydroquebec==1.1.0
pyhydroquebec==1.2.0
# homeassistant.components.device_tracker.icloud
pyicloud==0.9.1