Skip to content

Commit

Permalink
Merge pull request #47 from ond000/main
Browse files Browse the repository at this point in the history
Fix for issue #37 regarding SpinDownDelay error from HA logs
  • Loading branch information
domalab authored Jan 2, 2025
2 parents c3379fa + db93c9a commit b128899
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions custom_components/unraid/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ class SpinDownDelay(IntEnum):
MINUTES_15 = 15
MINUTES_30 = 30
MINUTES_45 = 45
HOUR_1 = 60
HOURS_2 = 120
HOURS_3 = 180
HOURS_4 = 240
HOURS_5 = 300
HOURS_6 = 360
HOURS_7 = 420
HOURS_8 = 480
HOURS_9 = 540
HOUR_1 = 1
HOURS_2 = 2
HOURS_3 = 3
HOURS_4 = 4
HOURS_5 = 5
HOURS_6 = 6
HOURS_7 = 7
HOURS_8 = 8
HOURS_9 = 9

def to_human_readable(self) -> str:
"""Convert spin down delay to human readable format."""
Expand Down Expand Up @@ -137,4 +137,4 @@ class DiskHealth(str, Enum):
DEVICE_INFO_VM = {
"manufacturer": "Unraid",
"model": "Virtual Machine",
}
}

0 comments on commit b128899

Please sign in to comment.