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
@@ -7,7 +7,7 @@ https://home-assistant.io/components/sensor.forecast/
import logging
from datetime import timedelta
from homeassistant.const import CONF_API_KEY, TEMP_CELCIUS
from homeassistant.const import CONF_API_KEY, TEMP_CELSIUS
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
@@ -64,7 +64,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
if 'units' in config:
units = config['units']
elif hass.config.temperature_unit == TEMP_CELCIUS:
elif hass.config.temperature_unit == TEMP_CELSIUS:
units = 'si'
else:
units = 'us'