[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:
Jonathan Swoboda
2026-04-06 22:38:47 +00:00
committed by GitHub
co-authored by J. Nick Koston
parent 6f62b2f18c
commit 5a14d6a4ad
6 changed files with 17 additions and 0 deletions
+2
View File
@@ -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,
),