Return function to schedule saving sensors.

def _create_scheduler(self, save_sensors):
        """Return function to schedule saving sensors."""
        def schedule_save():
            """Save sensors and schedule a new save."""
            save_sensors()
            scheduler = threading.Timer(10.0, schedule_save)
            scheduler.start()
            self._cancel_save = scheduler.cancel
        return schedule_save