Skip to content

Commit

Permalink
Round values
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Terasa committed Feb 1, 2024
1 parent c814348 commit b609a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/foxess_api/sensor_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ class FoxEssEntityDescription(SensorEntityDescription):
native_unit_of_measurement=PERCENTAGE,
variable="SoC",
state=lambda data: data["realtime"]["SoC"],
process=lambda value: round_if_numeric(value, 0),
process=lambda value: round_if_numeric(value, None),
),
FoxEssEntityDescription(
key="residual_energy",
Expand Down

0 comments on commit b609a3b

Please sign in to comment.