Skip to content

Commit

Permalink
Fix Wearout values for SSDs
Browse files Browse the repository at this point in the history
Closes #310
  • Loading branch information
jeremysherriff authored Jun 2, 2024
1 parent ac94fa9 commit 7576a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/proxmoxve/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class ProxmoxSensorEntityDescription(ProxmoxEntityDescription, SensorEntityDescr
name="Wearout",
icon="mdi:clipboard-pulse-outline",
native_unit_of_measurement=PERCENTAGE,
conversion_fn=lambda x: (100 - x) / 100 if x != UNDEFINED else None,
conversion_fn=lambda x: (100 - x) if x != UNDEFINED else None,
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=0,
translation_key="disk_wearout",
Expand Down

0 comments on commit 7576a3e

Please sign in to comment.