def get_status(self):
     # type: () -> List[VentilationStatusDTO]
     status = []
     for ventilation in Ventilation.select():
         state_dto = self._status.get(ventilation.id)
         if state_dto:
             status.append(state_dto)
     return status
 def load_ventilations(self):
     # type: () -> List[VentilationDTO]
     return [
         VentilationMapper.orm_to_dto(ventilation)
         for ventilation in Ventilation.select()
     ]