From 8c9768b05e9ef62dc25c8e01856a76d07e9dccc6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 29 Apr 2023 16:04:57 +0200 Subject: [PATCH] Robustness check for system disk entities. When the system information is still loading it may happen that the device associated to the disk hasn't been loaded yet. --- platypush/plugins/system/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/system/__init__.py b/platypush/plugins/system/__init__.py index 0b2c06a1c3..54b5d6007d 100644 --- a/platypush/plugins/system/__init__.py +++ b/platypush/plugins/system/__init__.py @@ -606,6 +606,7 @@ class SystemPlugin(SensorPlugin, EntityManager): **disk, ) for disk in entities['disks'] + if disk.get('device') ], *[ NetworkInterfaceModel(