|
8 | 8 |
|
9 | 9 | from aiohttp import hdrs, web |
10 | 10 |
|
11 | | -from ..const import AddonState |
| 11 | +from ..const import SUPERVISOR_DOCKER_NAME, AddonState |
12 | 12 | from ..coresys import CoreSys, CoreSysAttributes |
13 | 13 | from ..exceptions import APIAddonNotInstalled, HostNotSupportedError |
14 | 14 | from ..utils.sentry import async_capture_exception |
@@ -426,7 +426,7 @@ def _register_supervisor(self) -> None: |
426 | 426 | async def get_supervisor_logs(*args, **kwargs): |
427 | 427 | try: |
428 | 428 | return await self._api_host.advanced_logs_handler( |
429 | | - *args, identifier="hassio_supervisor", **kwargs |
| 429 | + *args, identifier=SUPERVISOR_DOCKER_NAME, **kwargs |
430 | 430 | ) |
431 | 431 | except Exception as err: # pylint: disable=broad-exception-caught |
432 | 432 | # Supervisor logs are critical, so catch everything, log the exception |
@@ -789,6 +789,7 @@ def _register_docker(self) -> None: |
789 | 789 | self.webapp.add_routes( |
790 | 790 | [ |
791 | 791 | web.get("/docker/info", api_docker.info), |
| 792 | + web.post("/docker/options", api_docker.options), |
792 | 793 | web.get("/docker/registries", api_docker.registries), |
793 | 794 | web.post("/docker/registries", api_docker.create_registry), |
794 | 795 | web.delete("/docker/registries/{hostname}", api_docker.remove_registry), |
|
0 commit comments