From ea7c304727d5dd9952659a19f4b9bf08444659f6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 17 Dec 2025 01:00:36 -0600 Subject: [PATCH] fix return type hint on get() --- custom_components/assistd/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/assistd/__init__.py b/custom_components/assistd/__init__.py index 1c0835e..3ba688c 100644 --- a/custom_components/assistd/__init__.py +++ b/custom_components/assistd/__init__.py @@ -4,6 +4,7 @@ from __future__ import annotations import logging from typing import Any +from aiohttp import web from homeassistant.components.http import HomeAssistantView from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_registry as er @@ -32,7 +33,7 @@ class AssistdView(HomeAssistantView): """Initialize the view.""" self._hass = hass - async def get(self, request) -> dict[str, Any]: + async def get(self, request: web.Request) -> web.Response: """Return list of entities exposed to Assist/conversation.""" registry = er.async_get(self._hass) exposed = []