Correct celcius to celsius (#1860)

This commit is contained in:
Paulus Schoutsen committed 2016-04-19 20:30:44 -07:00
1 parent 9090672146
commit 2e79e9d5bb
43 files changed
+128 -109

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ import logging
import homeassistant.components.modbus as modbus
from homeassistant.const import (
STATE_OFF, STATE_ON, TEMP_CELCIUS, TEMP_FAHRENHEIT)
STATE_OFF, STATE_ON, TEMP_CELSIUS, TEMP_FAHRENHEIT)
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
@@ -97,7 +97,7 @@ class ModbusSensor(Entity):
def unit_of_measurement(self):
"""Return the unit of measurement of this entity, if any."""
if self._unit == "C":
return TEMP_CELCIUS
return TEMP_CELSIUS
elif self._unit == "F":
return TEMP_FAHRENHEIT
else: