old_contents: import copy
  
  from mpf.core.config_player import ConfigPlayer
  
  
  class CoilPlayer(ConfigPlayer):
      config_file_section = 'coil_player'
      show_section = 'coils'
  
      def play(self, settings, key=None, priority=0, **kwargs):
          del kwargs
  
          if 'coils' in settings:
              settings = settings['coils']
  
          for coil, s in settings.items():
              s = copy.deepcopy(s)
              action = s.pop('action')
              try:
                  getattr(coil, action)(**s)
              except AttributeError:
                  getattr(self.machine.coils[coil], action)(**s)
  
      def get_express_config(self, value):
  
          try:
              value = int(value)
              return dict(action='pulse', milliseconds=value)
          except (TypeError, ValueError):
              pass
  
          action = 'pulse'
  
          if value in ('disable', 'off'):
              action = 'disable'
  
          elif value in ('enable', 'on'):
              action = 'enable'
  
          return dict(action=action, power=1.0)
  
  
  player_cls = CoilPlayer
  
new_contents: import copy
  
  from mpf.core.config_player import ConfigPlayer
  
  
  class CoilPlayer(ConfigPlayer):
      config_file_section = 'coil_player'
      show_section = 'coils'
  
      def play(self, settings, context, priority=0, **kwargs):
          del kwargs
  
          if 'coils' in settings:
              settings = settings['coils']
  
          for coil, s in settings.items():
              s = copy.deepcopy(s)
              action = s.pop('action')
              try:
                  getattr(coil, action)(**s)
              except AttributeError:
                  getattr(self.machine.coils[coil], action)(**s)
  
      def get_express_config(self, value):
          try:
              value = int(value)
              return dict(action='pulse', milliseconds=value)
          except (TypeError, ValueError):
              pass
  
          action = 'pulse'
  
          if value in ('disable', 'off'):
              action = 'disable'
  
          elif value in ('enable', 'on'):
              action = 'enable'
  
          return dict(action=action, power=1.0)
  
  
  player_cls = CoilPlayer
  
subject: update signature