From f3945147a4118482e2da096d0d0be2a3e9ae6534 Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Wed, 21 Jun 2017 10:36:20 -0400 Subject: [PATCH] Add current balance to hydroquebec sensor (#8138) --- homeassistant/components/sensor/hydroquebec.py | 4 +++- requirements_all.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/hydroquebec.py b/homeassistant/components/sensor/hydroquebec.py index c96909e5bc1..45a7b812039 100644 --- a/homeassistant/components/sensor/hydroquebec.py +++ b/homeassistant/components/sensor/hydroquebec.py @@ -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': diff --git a/requirements_all.txt b/requirements_all.txt index a3449ecb424..adadfdcf576 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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