mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Reconnect loopenergy
* Bump pyloopenergy version to handle disconnects. Round floats. * Bump pyloopenergy version - to support reconnect.
This commit is contained in:
parent
5c753f8ffd
commit
61a9562811
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user