"""Demo mode entry point.

Usage:
    python -m wled_controller.demo

Starts the server in demo mode with virtual devices, engines, and seed data.
Equivalent to setting WLED_DEMO=true before starting the regular server.
"""

import os


def main():
    os.environ["WLED_DEMO"] = "true"

    import uvicorn
    from wled_controller.config import get_config

    config = get_config()
    uvicorn.run(
        "wled_controller.main:app",
        host=config.server.host,
        port=config.server.port,
        log_level=config.server.log_level.lower(),
        reload=False,
    )


if __name__ == "__main__":
    main()
