code: def zone_schedules_restore(self, filename):
          
          _LOGGER.info("Restoring schedules to ControlSystem %s (%s)...",
                       self.systemId, self.location)
  
          _LOGGER.info("Reading from backup file: %s...", filename)
          with open(filename, 'r') as file_input:
              schedule_db = file_input.read()
              schedules = json.loads(schedule_db)
  
              for zone_id, zone_schedule in schedules.items():
                  name = zone_schedule['name']
                  zone_info = zone_schedule['schedule']
  
                  _LOGGER.info("Restoring schedule for: %s - %s...",
                               zone_id, name)
  
                  if self.hotwater and self.hotwater.zoneId == zone_id:
                      self.hotwater.set_schedule(json.dumps(zone_info))
                  else:
                      self.zones_by_id[zone_id].set_schedule(
                          json.dumps(zone_info))
  
          _LOGGER.info("Restore completed.")
docs: Restore all zones on control system from the given file.