Skip to content

Commit

Permalink
add alternative smart temperature name, ref #108
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaae committed Apr 25, 2023
1 parent a32ae26 commit d7a76f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/openmediavault/omv_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def get_smart(self):
"Seek_Error_Rate",
"Load_Cycle_Count",
"Temperature_Celsius",
"temperature",
"UDMA_CRC_Error_Count",
"Multi_Zone_Error_Rate",
]
Expand All @@ -397,6 +398,9 @@ def get_smart(self):
"rawvalue"
].split(" ")[0]

if tmp_val == "temperature":
tmp_val = "Temperature_Celsius"

self.data["disk"][uid][tmp_val] = tmp_data[tmp_val]["rawvalue"]

# ---------------------------
Expand Down

0 comments on commit d7a76f3

Please sign in to comment.