Fix websocket search for related (#48603)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>pull/48613/head
parent
09eb74fd9d
commit
ceeb060c05
|
@ -19,7 +19,6 @@ async def async_setup(hass: HomeAssistant, config: dict):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
@websocket_api.async_response
|
|
||||||
@websocket_api.websocket_command(
|
@websocket_api.websocket_command(
|
||||||
{
|
{
|
||||||
vol.Required("type"): "search/related",
|
vol.Required("type"): "search/related",
|
||||||
|
@ -38,6 +37,7 @@ async def async_setup(hass: HomeAssistant, config: dict):
|
||||||
vol.Required("item_id"): str,
|
vol.Required("item_id"): str,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@callback
|
||||||
def websocket_search_related(hass, connection, msg):
|
def websocket_search_related(hass, connection, msg):
|
||||||
"""Handle search."""
|
"""Handle search."""
|
||||||
searcher = Searcher(
|
searcher = Searcher(
|
||||||
|
|
Loading…
Reference in New Issue