+ def remove_light(self, light):
+ self._lights.remove(light)
+ light.remove(self._space)
+
+ def battery_dead(self):
+ self._battery_dead = True
+ for light in self._lights:
+ light.off()
+
+ def serialize_lights(self):
+ result = []
+ for light in self._lights:
+ result.append(light.serialize())
+ return result
+