Fix calculation in Refoss (#120069)

This commit is contained in:
Joost Lekkerkerker 2024-06-21 10:42:25 +02:00 committed by GitHub
parent 3b6189a432
commit a6724db01b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,10 +50,10 @@ SENSORS: dict[str, tuple[RefossSensorEntityDescription, ...]] = {
translation_key="power",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.KILO_WATT,
suggested_unit_of_measurement=UnitOfPower.WATT,
native_unit_of_measurement=UnitOfPower.WATT,
suggested_display_precision=2,
subkey="power",
fn=lambda x: x / 1000.0,
),
RefossSensorEntityDescription(
key="voltage",