Fixed typo (#3569)

Sep 29 00:59:22 pi hass[21333]: if self.device.measurment_scale == 'F':
Sep 29 00:59:22 pi hass[21333]: AttributeError: 'Device' object has no attribute 'measurment_scale'
This commit is contained in:
Marcelo Moreira de Mello 2016-09-29 01:07:23 -04:00 committed by Paulus Schoutsen
parent 6e80581b30
commit 48ffdea31f

View File

@ -57,7 +57,7 @@ class NestThermostat(ClimateDevice):
@property @property
def unit_of_measurement(self): def unit_of_measurement(self):
"""Return the unit of measurement.""" """Return the unit of measurement."""
if self.device.measurment_scale == 'F': if self.device.measurement_scale == 'F':
return TEMP_FAHRENHEIT return TEMP_FAHRENHEIT
elif self.device.measurement_scale == 'C': elif self.device.measurement_scale == 'C':
return TEMP_CELSIUS return TEMP_CELSIUS