mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 06:46:58 +00:00
Celcius to celsius doc fix (#424)
* Update platform_example_sensor.markdown Fix celcius to celsius * Update splitting_configuration.markdown
This commit is contained in:
parent
d98d3a5258
commit
3782bd39c0
@ -26,7 +26,7 @@ homeassistant:
|
|||||||
# Location required to calculate the time the sun rises and sets
|
# Location required to calculate the time the sun rises and sets
|
||||||
latitude: 37
|
latitude: 37
|
||||||
longitude: -121
|
longitude: -121
|
||||||
# C for Celcius, F for Fahrenheit
|
# C for Celsius, F for Fahrenheit
|
||||||
temperature_unit: F
|
temperature_unit: F
|
||||||
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||||
time_zone: America/Los_Angeles
|
time_zone: America/Los_Angeles
|
||||||
|
@ -26,7 +26,7 @@ sensor:
|
|||||||
### {% linkable_title Code %}
|
### {% linkable_title Code %}
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from homeassistant.const import TEMP_CELCIUS
|
from homeassistant.const import TEMP_CELSIUS
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
|
|
||||||
@ -45,5 +45,5 @@ class ExampleSensor(Entity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
return TEMP_CELCIUS
|
return TEMP_CELSIUS
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user