code: def _update_service_current_state(service: ServiceState):
      
      LOG.debug("Setting current state from target state for %s", service.id)
      service.update_current_state(service.target_state)
docs: Update the current state of a service.
  
      Updates the current state of services after their target state has changed.
  
      Args:
          service (ServiceState): Service state object to update