mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
Fix uptime's state_class (esphome/issues#2337) (#2205)
This commit is contained in:
parent
b01bc76dc5
commit
00aaf84c37
@ -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(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user