mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix zha RMS voltage (#84689)
Fix RMS Voltage. class ElectricalMeasurementRMSVoltage(ElectricalMeasurement, id_suffix="rms_voltage"): is using CURRENT as unit but shall being VOLTAGE. Fix: https://github.com/home-assistant/core/issues/84537
This commit is contained in:
parent
0c7eb431e6
commit
0854f29b7c
@ -324,7 +324,7 @@ class ElectricalMeasurementRMSVoltage(ElectricalMeasurement, id_suffix="rms_volt
|
|||||||
"""RMS Voltage measurement."""
|
"""RMS Voltage measurement."""
|
||||||
|
|
||||||
SENSOR_ATTR = "rms_voltage"
|
SENSOR_ATTR = "rms_voltage"
|
||||||
_attr_device_class: SensorDeviceClass = SensorDeviceClass.CURRENT
|
_attr_device_class: SensorDeviceClass = SensorDeviceClass.VOLTAGE
|
||||||
_attr_should_poll = False # Poll indirectly by ElectricalMeasurementSensor
|
_attr_should_poll = False # Poll indirectly by ElectricalMeasurementSensor
|
||||||
_attr_name: str = "RMS voltage"
|
_attr_name: str = "RMS voltage"
|
||||||
_attr_native_unit_of_measurement = UnitOfElectricPotential.VOLT
|
_attr_native_unit_of_measurement = UnitOfElectricPotential.VOLT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user