def __init__(self, thing, data): Event.__init__(self, thing, 'proximity', data=data) if self.data is True: GPIO.output(24, GPIO.HIGH) thing.properties['led'].value.last_value = True elif self.data is False: GPIO.output(24, GPIO.LOW) thing.properties['led'].value.last_value = False
def __init__(self, thing, data): Event.__init__(self, thing, 'overheated', data=data)
def __init__(self, thing, data): logging.debug("Overheated event") Event.__init__(self, thing, 'overheated', data=data)
def __init__(self, thing, data=None): Event.__init__(self, thing, name='alarm', data=data) logging.debug("Alarm event")
def __init__(self, thing, data): Event.__init__(self, thing, 'proximity', data=data)
def __init__(self, thing, data): """Initialize the event.""" Event.__init__(self, thing, 'playlistUpdated', data=data)
def __init__(self, thing, data): Event.__init__(self, thing, "overheated", data=data)