Initialize dev tools from environment config on first run.
(self)
| 134 | self._dev_tools_initialized = False |
| 135 | |
| 136 | async def _initialize_dev_tools(self) -> None: |
| 137 | """Initialize dev tools from environment config on first run.""" |
| 138 | if not self._dev_tools_initialized: |
| 139 | config = json.loads(os.getenv(_ENV_CONFIG, "{}")) |
| 140 | if config: |
| 141 | self.dash_app.enable_dev_tools(**config, first_run=False) |
| 142 | self._dev_tools_initialized = True |
| 143 | |
| 144 | async def _setup_timing(self, request: Request) -> None: |
| 145 | """Set up timing information for the request.""" |
no test coverage detected