mirror of
https://github.com/sudoxnym/ha-assistd.git
synced 2026-04-14 11:37:20 +00:00
fix return type hint on get()
This commit is contained in:
parent
4343bf15e6
commit
ea7c304727
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ from __future__ import annotations
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
from aiohttp import web
|
||||||
from homeassistant.components.http import HomeAssistantView
|
from homeassistant.components.http import HomeAssistantView
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers import entity_registry as er
|
from homeassistant.helpers import entity_registry as er
|
||||||
|
|
@ -32,7 +33,7 @@ class AssistdView(HomeAssistantView):
|
||||||
"""Initialize the view."""
|
"""Initialize the view."""
|
||||||
self._hass = hass
|
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."""
|
"""Return list of entities exposed to Assist/conversation."""
|
||||||
registry = er.async_get(self._hass)
|
registry = er.async_get(self._hass)
|
||||||
exposed = []
|
exposed = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue