Skip to content

Commit

Permalink
Include NativeTypeTemplate in checking BCP template values
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Sep 1, 2024
1 parent 22fa3d4 commit 811c04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpf/config_players/plugin_player.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Plugin config player."""
from mpf.config_players.device_config_player import DeviceConfigPlayer
from mpf.core.placeholder_manager import BaseTemplate
from mpf.core.placeholder_manager import BaseTemplate, NativeTypeTemplate


class PluginPlayer(DeviceConfigPlayer):
Expand Down Expand Up @@ -90,7 +90,7 @@ def play(self, settings, context, calling_context, priority=0, **kwargs):
eval_settings = {}
for s, settings_dict in settings.items():
for key, value in settings_dict.items():
if isinstance(value, BaseTemplate):
if isinstance(value, (BaseTemplate, NativeTypeTemplate)):
if not s in eval_settings:
eval_settings[s] = settings_dict.copy()
eval_settings[s][key] = value.evaluate(kwargs)
Expand Down

0 comments on commit 811c04c

Please sign in to comment.