in authentication-function/src/components.py [0:0]
def activate(self, light_or_lights, deactivate_others=False):
if not isinstance(light_or_lights, list):
light_or_lights = [light_or_lights]
for l in light_or_lights:
GPIO.output(self.pin_map[l], GPIO.HIGH)
if deactivate_others:
other_lights = list(set(self.pin_map.keys()) - set(light_or_lights))
self.deactivate(other_lights)