Set a value in the component.

        Arguments:
        key - the key to set
        value - the new value

def set(self, key, value):
        """
        Set a value in the component.

        Arguments:
        key - the key to set
        value - the new value
        """
        if self._component.get(key, raw=True) != value:
            self._component[key] = value
            self._main_config.dirty = True