code: def disable_component(self, component):
          
          if not isinstance(component, type):
              component = component.__class__
          self.enabled[component] = False
          self.components[component] = None
docs: Force a component to be disabled.
  
          :param component: can be a class or an instance.