I want to get a unified list of events from multiple calendars. Since this isn’t supported, my idea is to write a python script that calls calendar.list_events
a bunch of times and then merges the results in a sorted way.
How do I structure the hass.services.call
call to get results back? Currently I’m getting the following error
ERROR (SyncWorker_2) [homeassistant.components.python_script.get_calendar_multi.py] Error executing script: Service call requires responses but caller did not ask for responses
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 224, in execute
exec(compiled.code, restricted_globals) # noqa: S102
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "get_calendar_multi.py", line 23, in <module>
File "/usr/src/homeassistant/homeassistant/core.py", line 1874, in call
).result()
^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/src/homeassistant/homeassistant/core.py", line 1926, in async_call
raise ValueError(
I’ve tried setting result_variable
and response_variable
on the service data that I send, but it makes no difference.