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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user