Allow thermostat temperatures with decimal numbers

This commit is contained in:
Paulus Schoutsen 2015-11-28 01:18:02 -08:00
parent 6809a881fa
commit 1146d6e58d
4 changed files with 10 additions and 10 deletions

View file

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
VERSION = "dff74f773ea8b0356b0bd8130ed6f0cf"
VERSION = "c90d40a0240cc1feec791ee820d928b3"

File diff suppressed because one or more lines are too long

@ -1 +1 @@
Subproject commit 39e09d85b74afb332ad2872b5aa556c9c9d113c3
Subproject commit 62e494bd04509e8d9b73354b0e17d3381955e0c8

View file

@ -147,13 +147,13 @@ class ThermostatDevice(Entity):
data = {
ATTR_CURRENT_TEMPERATURE:
self._convert(self.current_temperature, 1),
ATTR_MIN_TEMP: self._convert(self.min_temp, 0),
ATTR_MAX_TEMP: self._convert(self.max_temp, 0),
ATTR_TEMPERATURE: self._convert(self.target_temperature, 0),
ATTR_MIN_TEMP: self._convert(self.min_temp, 1),
ATTR_MAX_TEMP: self._convert(self.max_temp, 1),
ATTR_TEMPERATURE: self._convert(self.target_temperature, 1),
ATTR_TEMPERATURE_LOW:
self._convert(self.target_temperature_low, 0),
self._convert(self.target_temperature_low, 1),
ATTR_TEMPERATURE_HIGH:
self._convert(self.target_temperature_high, 0),
self._convert(self.target_temperature_high, 1),
}
operation = self.operation