mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix calculation in Refoss (#120069)
This commit is contained in:
parent
3b6189a432
commit
a6724db01b
@ -50,10 +50,10 @@ SENSORS: dict[str, tuple[RefossSensorEntityDescription, ...]] = {
|
|||||||
translation_key="power",
|
translation_key="power",
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=UnitOfPower.KILO_WATT,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
suggested_unit_of_measurement=UnitOfPower.WATT,
|
|
||||||
suggested_display_precision=2,
|
suggested_display_precision=2,
|
||||||
subkey="power",
|
subkey="power",
|
||||||
|
fn=lambda x: x / 1000.0,
|
||||||
),
|
),
|
||||||
RefossSensorEntityDescription(
|
RefossSensorEntityDescription(
|
||||||
key="voltage",
|
key="voltage",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user