mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 23:14:54 +01:00
Update sensor.py
This commit is contained in:
parent
3b9a52ca3e
commit
a137c68488
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
),
|
),
|
||||||
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
|
cv.Optional(CONF_TEMPERATURE): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_DEGREES,
|
unit_of_measurement=UNIT_DEGREES,
|
||||||
accuracy_decimals=2,
|
accuracy_decimals=1,
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=DEVICE_CLASS_TEMPERATURE,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue