Skip to content

Commit 5689953

Browse files
committed
Suppress audits and platform vars in TextUI
1 parent 41465aa commit 5689953

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mpf/core/text_ui.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,11 @@ def _update_machine_vars(self, **kwargs):
351351
self._machine_widgets.append(Label("MACHINE VARIABLES"))
352352
self._machine_widgets.append(Divider())
353353
machine_vars = self.machine.variables.machine_vars
354-
# If config defines explict vars to show, only show those. Otherwise, all
355-
names = self.config.get('machine_vars', machine_vars.keys())
354+
# If config defines explict vars to show, only show those.
355+
# Otherwise, filter out the unhelpful defaults
356+
names = self.config.get('machine_vars', [
357+
n for n in machine_vars.keys() if not (n.startswith("audits") or n.startswith("platform") or n.startswith("mpf"))
358+
])
356359
for name in names:
357360
self._machine_widgets.append(Label("{}: {}".format(name, machine_vars[name]['value'])))
358361
self._layout_change = True

0 commit comments

Comments
 (0)