mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +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",
|
||||
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user