def __setattr__(self, name, value):
        if '_GatewayWrapper__initialised' not in self.__dict__:
            return object.__setattr__(self, name, value)
        elif name in self.__dict__:
            object.__setattr__(self, name, value)
        else:
            object.__setattr__(self._wrapped_gateway, name, value)
See if this object has attribute name then set to value.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/mysensors.py/GatewayWrapper.__setattr__