Handle the new version of HydroQuebec website (#10682)

* Handle the new version of HydroQuebec website

* Update requirements_all.txt
This commit is contained in:
Thibault Cohen authored and Martin Hjelmare committed 2017-11-20 18:02:05 +01:00
1 parent 857d6b5b49
commit df37cb11fa
2 files changed
+4 -3

No files matched your search

@@ -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.2.0']
REQUIREMENTS = ['pyhydroquebec==1.3.1']
_LOGGER = logging.getLogger(__name__)
@@ -34,6 +34,7 @@ DEFAULT_NAME = 'HydroQuebec'
REQUESTS_TIMEOUT = 15
MIN_TIME_BETWEEN_UPDATES = timedelta(hours=1)
SCAN_INTERVAL = timedelta(hours=1)
SENSOR_TYPES = {
'balance':
@@ -115,7 +116,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
for variable in config[CONF_MONITORED_VARIABLES]:
sensors.append(HydroQuebecSensor(hydroquebec_data, variable, name))
add_devices(sensors, True)
add_devices(sensors)
class HydroQuebecSensor(Entity):