Reconnect loopenergy

* Bump pyloopenergy version to handle disconnects. Round floats.

* Bump pyloopenergy version - to support reconnect.
This commit is contained in:
Greg Dowling 2016-04-02 16:47:21 +01:00 committed by Paulus Schoutsen
parent 5c753f8ffd
commit 61a9562811
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ _LOGGER = logging.getLogger(__name__)
DOMAIN = "loopenergy"
REQUIREMENTS = ['pyloopenergy==0.0.5']
REQUIREMENTS = ['pyloopenergy==0.0.7']
def setup_platform(hass, config, add_devices, discovery_info=None):
@ -110,7 +110,7 @@ class LoopEnergyElec(LoopEnergyDevice):
def update(self):
"""Get the cached Loop energy."""
self._state = self._controller.electricity_useage
self._state = round(self._controller.electricity_useage, 2)
# pylint: disable=too-many-instance-attributes
@ -126,4 +126,4 @@ class LoopEnergyGas(LoopEnergyDevice):
def update(self):
"""Get the cached Loop energy."""
self._state = self._controller.gas_useage
self._state = round(self._controller.gas_useage, 2)

View File

@ -183,7 +183,7 @@ pyfttt==0.3
pyicloud==0.7.2
# homeassistant.components.sensor.loopenergy
pyloopenergy==0.0.5
pyloopenergy==0.0.7
# homeassistant.components.device_tracker.netgear
pynetgear==0.3.2