This summer, some of Oregon’s foster children were being temporarily housed in state offices and hotels for days — and sometimes weeks.

A cot, squeezed in among office cubicles at a child abuse hotline office, where a teen slept back in June 2016.

A cot, squeezed in among office cubicles at a child abuse hotline office, where a teen slept back in June 2016.

Courtesy of Shamus Cooke

CASA for Children sued and found foster kids were also being held in detention without charge and in hospitals without a medical problem. CASA and the Department of Human Services announced Tuesday they have reached a settlement in the case.

The state has agreed to immediately stop such housing — unless there’s an emergency, like a lack of a safe foster homes or a hotel within 30 minutes. The settlement also says that when a child is put in a hotel, he or she must be taken to school or child care during the day. The state also agreed to provide CASA a weekly list of temporarily housed kids, their ages and where they slept.

The state says the agreement is not an admission of guilt and is on an interim basis.