mirror of
https://github.com/esphome/esphome.git
synced 2024-12-01 19:24:14 +01:00
Set SDM voltage state class to measurement (#2181)
This commit is contained in:
parent
21f8fd9fa5
commit
5cb56bc677
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ PHASE_SENSORS = {
|
||||||
unit_of_measurement=UNIT_VOLT,
|
unit_of_measurement=UNIT_VOLT,
|
||||||
accuracy_decimals=2,
|
accuracy_decimals=2,
|
||||||
device_class=DEVICE_CLASS_VOLTAGE,
|
device_class=DEVICE_CLASS_VOLTAGE,
|
||||||
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
CONF_CURRENT: sensor.sensor_schema(
|
CONF_CURRENT: sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_AMPERE,
|
unit_of_measurement=UNIT_AMPERE,
|
||||||
|
|
Loading…
Reference in a new issue