Open
Description
Hi,
I try to use callService
to get the calendar events of an entity. I have an issue because I always get the error
{
code: 'unknown_error',
message: 'Service call requires responses but caller did not ask for responses'
}
The message make sense but I could not find a way to add the response variable as it is done on the service side. I either became an error from typescript or an error from the server that the key is not allowed.
How can I get response data via callService
?
Here is my code snippet.
const rc = await callService(
con,
"calendar",
"list_events",
{
duration: {
hours: 96,
minutes: 0,
seconds: 0,
},
},
{ entity_id: "calendar.mytestcalendar" }
);
My Home Assistant instance is on 2023.9.2.
Thanks in advance
Michael
Metadata
Metadata
Assignees
Labels
No labels