1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Correct celcius to celsius (#1860)

This commit is contained in:
Paulus Schoutsen
2016-04-19 20:30:44 -07:00
parent 9090672146
commit 2e79e9d5bb
43 changed files with 128 additions and 109 deletions

View File

@@ -7,7 +7,7 @@ at https://home-assistant.io/components/sensor.wink/
import logging
from homeassistant.const import (CONF_ACCESS_TOKEN, STATE_CLOSED,
STATE_OPEN, TEMP_CELCIUS)
STATE_OPEN, TEMP_CELSIUS)
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['python-wink==0.7.4']
@@ -45,7 +45,7 @@ class WinkSensorDevice(Entity):
self.wink = wink
self.capability = self.wink.capability()
if self.wink.UNIT == "°":
self._unit_of_measurement = TEMP_CELCIUS
self._unit_of_measurement = TEMP_CELSIUS
else:
self._unit_of_measurement = self.wink.UNIT