Skip to content

Commit

Permalink
Merge pull request #318 from jeremysherriff/patch-1
Browse files Browse the repository at this point in the history
Fix Wearout values for SSDs
  • Loading branch information
dougiteixeira authored Jun 2, 2024
2 parents ac94fa9 + 7576a3e commit cae05bb
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 cae05bb

Please sign in to comment.