events.py 339 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. from typing import Callable, Optional
  3. from fastapi import FastAPI
  4. # from app.controllers.equipment.events import regulate_ahu_freq
  5. def create_start_app_handler(app: Optional[FastAPI] = None) -> Callable:
  6. async def start_app() -> None:
  7. # await regulate_ahu_freq()
  8. pass
  9. return start_app