From 7db1e8b1a82d06a43f968c30bc4620cf3133c194 Mon Sep 17 00:00:00 2001 From: lymanepp Date: Fri, 29 Nov 2024 16:08:57 -0500 Subject: [PATCH] Include fix from @rofo69 from https://community.home-assistant.io/t/openmediavault-integration/189310/156 - moved to proper location --- custom_components/openmediavault/omv_controller.py | 1 + custom_components/openmediavault/sensor_types.py | 1 + 2 files changed, 2 insertions(+) diff --git a/custom_components/openmediavault/omv_controller.py b/custom_components/openmediavault/omv_controller.py index 5a48761..56c5cd2 100644 --- a/custom_components/openmediavault/omv_controller.py +++ b/custom_components/openmediavault/omv_controller.py @@ -335,6 +335,7 @@ def get_smart(self): key="devicename", vals=[ {"name": "temperature", "default": 0}, + {"name": "overallstatus", "default": "unknown"}, ], ) diff --git a/custom_components/openmediavault/sensor_types.py b/custom_components/openmediavault/sensor_types.py index bead373..3879f70 100644 --- a/custom_components/openmediavault/sensor_types.py +++ b/custom_components/openmediavault/sensor_types.py @@ -51,6 +51,7 @@ "israid", "isroot", "isreadonly", + "overallstatus", ] DEVICE_ATTRIBUTES_DISK_SMART = [