From c1f37d11afe168fc5be305b24fffeb8fa454acc6 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 3 Mar 2025 17:17:01 -0500 Subject: [PATCH] Forgot syntax indenttation --- hwmonDaemon.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 1d22c9f..a7ff7ba 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -309,11 +309,11 @@ class SystemHealthMonitor: :return: Boolean indicating if it's a relevant physical disk """ # Strip partition numbers to get base device - base_device = re.sub(r'\d+', '', device_path) - excluded_mounts = ['/boot', '/boot/efi'] - if any(device_path.startswith(mount) for mount in excluded_mounts): - return False - return bool(re.match(r'/dev/(sd[a-z]|nvme\d+n\d+|mmcblk\d+)', base_device)) + base_device = re.sub(r'\d+', '', device_path) + excluded_mounts = ['/boot', '/boot/efi'] + if any(device_path.startswith(mount) for mount in excluded_mounts): + return False + return bool(re.match(r'/dev/(sd[a-z]|nvme\d+n\d+|mmcblk\d+)', base_device)) def _check_disk_firmware(self, device: str) -> Dict[str, Any]: