def register_lights(self):
        """Adds handlers to all lights so the OSC client can receive
        updates."""

        try:
            for light in self.machine.lights:
                light.add_handler(self.client_update_light)
        except __HOLE__:
            pass
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/osc.py/OSC.register_lights