def sendEvent(self, key, data, deviceAttributes=None): AmqpDaemon.sendEvent(self, key, data, deviceAttributes)
def sendEvent(self, key, data, deviceAttributes={}): # add the service class to all events from that class deviceAttributes['class'] = self.config.get('class') AmqpDaemon.sendEvent(self, key, data, deviceAttributes)