mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[multiple] Add missing device_class to sensor schemas (batch 2) (#15487)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
co-authored by
J. Nick Koston
parent
6f62b2f18c
commit
5a14d6a4ad
@@ -8,6 +8,7 @@ from esphome.const import (
|
||||
CONF_FRAGMENTATION,
|
||||
CONF_FREE,
|
||||
CONF_LOOP_TIME,
|
||||
DEVICE_CLASS_FREQUENCY,
|
||||
ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
ICON_COUNTER,
|
||||
ICON_TIMER,
|
||||
@@ -102,6 +103,7 @@ CONFIG_SCHEMA = {
|
||||
unit_of_measurement=UNIT_HERTZ,
|
||||
icon="mdi:speedometer",
|
||||
accuracy_decimals=0,
|
||||
device_class=DEVICE_CLASS_FREQUENCY,
|
||||
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user