Skip to content

Commit

Permalink
Updating scale factor to 1 for CT Power as the HV APIs now report thi…
Browse files Browse the repository at this point in the history
…s in W
  • Loading branch information
gndean committed Oct 20, 2023
1 parent 7be5e45 commit 8fc414b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/hypervolt_charger/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"requirements": [
"websockets==11.0"
],
"version": "1.2.1"
"version": "1.2.2"
}
1 change: 0 additions & 1 deletion custom_components/hypervolt_charger/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ async def async_setup_entry(
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
unit_of_measure=UnitOfPower.WATT,
scale_factor=0.01, # API appears to give us 0.01W units
),
HypervoltSensor(
coordinator,
Expand Down

0 comments on commit 8fc414b

Please sign in to comment.