mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
pylontech: fix voltage_low and voltage_high wrong unit (#6060)
Co-authored-by: だから <82636574+Dackara@users.noreply.github.com>
This commit is contained in:
parent
696bfe6a87
commit
9bdb9dc1a3
1 changed files with 6 additions and 6 deletions
|
@ -59,14 +59,14 @@ TYPES: dict[str, cv.Schema] = {
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=DEVICE_CLASS_TEMPERATURE,
|
||||||
),
|
),
|
||||||
CONF_VOLTAGE_LOW: sensor.sensor_schema(
|
CONF_VOLTAGE_LOW: sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_CELSIUS,
|
unit_of_measurement=UNIT_VOLT,
|
||||||
accuracy_decimals=1,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=DEVICE_CLASS_VOLTAGE,
|
||||||
),
|
),
|
||||||
CONF_VOLTAGE_HIGH: sensor.sensor_schema(
|
CONF_VOLTAGE_HIGH: sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_CELSIUS,
|
unit_of_measurement=UNIT_VOLT,
|
||||||
accuracy_decimals=1,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_TEMPERATURE,
|
device_class=DEVICE_CLASS_VOLTAGE,
|
||||||
),
|
),
|
||||||
CONF_COULOMB: sensor.sensor_schema(
|
CONF_COULOMB: sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_PERCENT,
|
unit_of_measurement=UNIT_PERCENT,
|
||||||
|
|
Loading…
Reference in a new issue