Fix uptime's state_class (esphome/issues#2337) (#2205)

This commit is contained in:
DAVe3283 2021-09-02 22:58:30 -06:00 committed by GitHub
parent b01bc76dc5
commit 00aaf84c37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ import esphome.config_validation as cv
from esphome.components import sensor
from esphome.const import (
CONF_ID,
STATE_CLASS_NONE,
STATE_CLASS_TOTAL_INCREASING,
UNIT_SECOND,
ICON_TIMER,
)
@ -16,7 +16,7 @@ CONFIG_SCHEMA = (
unit_of_measurement=UNIT_SECOND,
icon=ICON_TIMER,
accuracy_decimals=0,
state_class=STATE_CLASS_NONE,
state_class=STATE_CLASS_TOTAL_INCREASING,
)
.extend(
{