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.
This commit is contained in:
Fabio Manganiello 2023-04-29 16:04:57 +02:00
parent a20065c649
commit 8c9768b05e
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ class SystemPlugin(SensorPlugin, EntityManager):
**disk,
)
for disk in entities['disks']
if disk.get('device')
],
*[
NetworkInterfaceModel(