forked from platypush/platypush
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:
parent
a20065c649
commit
8c9768b05e
1 changed files with 1 additions and 0 deletions
|
@ -606,6 +606,7 @@ class SystemPlugin(SensorPlugin, EntityManager):
|
||||||
**disk,
|
**disk,
|
||||||
)
|
)
|
||||||
for disk in entities['disks']
|
for disk in entities['disks']
|
||||||
|
if disk.get('device')
|
||||||
],
|
],
|
||||||
*[
|
*[
|
||||||
NetworkInterfaceModel(
|
NetworkInterfaceModel(
|
||||||
|
|
Loading…
Reference in a new issue