From 94a18a4662a59d41594afa52b3a29db15b5a57b1 Mon Sep 17 00:00:00 2001 From: Aufano Date: Thu, 6 Apr 2017 02:17:16 +0200 Subject: [PATCH 1/2] Round current temperature --- homeassistant/components/climate/zwave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/climate/zwave.py b/homeassistant/components/climate/zwave.py index 74fadb8c5fd02e..dee7af928ed628 100755 --- a/homeassistant/components/climate/zwave.py +++ b/homeassistant/components/climate/zwave.py @@ -83,7 +83,7 @@ def update_properties(self): # Current Temp if self.values.temperature: - self._current_temperature = self.values.temperature.data + self._current_temperature = (round((float(self.values.temperature.data)), 1)) device_unit = self.values.temperature.units if device_unit is not None: self._unit = device_unit From 2042c34e4e6a58e9bc7aab91ee35663cbdbab4ea Mon Sep 17 00:00:00 2001 From: Aufano Date: Thu, 6 Apr 2017 02:45:34 +0200 Subject: [PATCH 2/2] Round temperature: flake8 fixes --- homeassistant/components/climate/zwave.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/climate/zwave.py b/homeassistant/components/climate/zwave.py index dee7af928ed628..afafbb6dca9664 100755 --- a/homeassistant/components/climate/zwave.py +++ b/homeassistant/components/climate/zwave.py @@ -83,7 +83,8 @@ def update_properties(self): # Current Temp if self.values.temperature: - self._current_temperature = (round((float(self.values.temperature.data)), 1)) + self._current_temperature = ( + round((float(self.values.temperature.data)), 1)) device_unit = self.values.temperature.units if device_unit is not None: self._unit = device_unit