diff --git a/homeassistant/components/sensor/loopenergy.py b/homeassistant/components/sensor/loopenergy.py index 0c9cc341be3..7745116e82f 100644 --- a/homeassistant/components/sensor/loopenergy.py +++ b/homeassistant/components/sensor/loopenergy.py @@ -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) diff --git a/requirements_all.txt b/requirements_all.txt index f10c9972407..d1de17a6bbb 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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