From 9a0505f5f23d6363fa16329f6192b53cce3071fc Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 1 May 2020 13:23:12 +0200 Subject: [PATCH] [modules/smartstatus] Add module reference to widgets fixes related to #612 --- modules/contrib/smartstatus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/contrib/smartstatus.py b/modules/contrib/smartstatus.py index 095cea8..2008165 100644 --- a/modules/contrib/smartstatus.py +++ b/modules/contrib/smartstatus.py @@ -33,7 +33,7 @@ class Module(core.module.Module): def create_widgets(self): widgets = [] if self.display == 'combined': - widget = core.widget.Widget() + widget = core.widget.Widget(module=self) widget.set('device', 'combined') widget.set('assessment', self.combined()) self.output(widget) @@ -42,7 +42,7 @@ class Module(core.module.Module): for device in self.devices: if self.display == 'singles' and device not in self.drives: continue - widget = core.widget.Widget() + widget = core.widget.Widget(module=self) widget.set('device', device) widget.set('assessment', self.smart(device)) self.output(widget)