docs: def _update_enabled(self, name, enabled_value):
          '''
          Update whether an individual beacon is enabled
          '''
  
          if isinstance(self.opts['beacons'][name], dict):
              # Backwards compatibility
              self.opts['beacons'][name]['enabled'] = enabled_value
          else:
              enabled_index = self._get_index(self.opts['beacons'][name], 'enabled')
              if enabled_index >= 0:
                  self.opts['beacons'][name][enabled_index]['enabled'] = enabled_value
              else:
                  self.opts['beacons'][name].append({'enabled': enabled_value})