@@ -59,7 +59,7 @@ async def get_api_instance() -> llm.APIInstance:
5959 # Backwards compatibility with old MCP Server config
6060 return await llm .async_get_api (hass , llm_api_id , llm_context )
6161
62- @server .list_prompts () # type: ignore[no-untyped-call, misc ]
62+ @server .list_prompts () # type: ignore[no-untyped-call,untyped-decorator ]
6363 async def handle_list_prompts () -> list [types .Prompt ]:
6464 llm_api = await get_api_instance ()
6565 return [
@@ -69,7 +69,7 @@ async def handle_list_prompts() -> list[types.Prompt]:
6969 )
7070 ]
7171
72- @server .get_prompt () # type: ignore[no-untyped-call, misc ]
72+ @server .get_prompt () # type: ignore[no-untyped-call,untyped-decorator ]
7373 async def handle_get_prompt (
7474 name : str , arguments : dict [str , str ] | None
7575 ) -> types .GetPromptResult :
@@ -90,13 +90,13 @@ async def handle_get_prompt(
9090 ],
9191 )
9292
93- @server .list_tools () # type: ignore[no-untyped-call, misc ]
93+ @server .list_tools () # type: ignore[no-untyped-call,untyped-decorator ]
9494 async def list_tools () -> list [types .Tool ]:
9595 """List available time tools."""
9696 llm_api = await get_api_instance ()
9797 return [_format_tool (tool , llm_api .custom_serializer ) for tool in llm_api .tools ]
9898
99- @server .call_tool () # type: ignore[misc ]
99+ @server .call_tool () # type: ignore[untyped-decorator ]
100100 async def call_tool (name : str , arguments : dict ) -> Sequence [types .TextContent ]:
101101 """Handle calling tools."""
102102 llm_api = await get_api_instance ()
0 commit comments