1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

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

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(
{