Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ha_mcp/settings_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,9 @@ async def _restart_addon(_: Request) -> JSONResponse:
# Short timeout — the supervisor kills our process during restart so
# the connection will drop. A connection drop is actually success.
try:
async with httpx.AsyncClient(timeout=5.0) as client:
async with httpx.AsyncClient(
timeout=5.0, verify=server.settings.verify_ssl
Comment thread
Patch76 marked this conversation as resolved.
) as client:
resp = await client.post(
"http://supervisor/addons/self/restart",
headers={"Authorization": f"Bearer {token}"},
Expand Down
5 changes: 4 additions & 1 deletion src/ha_mcp/tools/tools_bug_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from ha_mcp import __version__

from ..config import get_global_settings
from ..utils.usage_logger import (
AVG_LOG_ENTRIES_PER_TOOL,
get_recent_logs,
Expand Down Expand Up @@ -181,7 +182,9 @@ async def _fetch_addon_logs() -> str:
return ""

try:
async with httpx.AsyncClient(timeout=10.0) as http_client:
async with httpx.AsyncClient(
timeout=10.0, verify=get_global_settings().verify_ssl
) as http_client:
resp = await http_client.get(
"http://supervisor/addons/self/logs",
headers={"Authorization": f"Bearer {token}"},
Expand Down
Loading