mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Fix uptime's state_class (esphome/issues#2337) (#2205)
This commit is contained in:
parent
b01bc76dc5
commit
00aaf84c37
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import esphome.config_validation as cv
|
||||||
from esphome.components import sensor
|
from esphome.components import sensor
|
||||||
from esphome.const import (
|
from esphome.const import (
|
||||||
CONF_ID,
|
CONF_ID,
|
||||||
STATE_CLASS_NONE,
|
STATE_CLASS_TOTAL_INCREASING,
|
||||||
UNIT_SECOND,
|
UNIT_SECOND,
|
||||||
ICON_TIMER,
|
ICON_TIMER,
|
||||||
)
|
)
|
||||||
|
@ -16,7 +16,7 @@ CONFIG_SCHEMA = (
|
||||||
unit_of_measurement=UNIT_SECOND,
|
unit_of_measurement=UNIT_SECOND,
|
||||||
icon=ICON_TIMER,
|
icon=ICON_TIMER,
|
||||||
accuracy_decimals=0,
|
accuracy_decimals=0,
|
||||||
state_class=STATE_CLASS_NONE,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
)
|
)
|
||||||
.extend(
|
.extend(
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue