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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

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