Just chiming in here. Same issue after upgrading from 2021.5 to 2021.6.
This is the relevant log in my case:
Logger: homeassistant.components.automation.mattis_fixar_frukost
Source: core.py:392
Integration: Automation (documentation, issues)
First occurred: 05:32:58 (6 occurrences)
Last logged: 05:46:52
Mattis fixar frukost: Error executing script. Unexpected error for call_service at pos 2: a coroutine was expected, got None
While executing automation automation.mattis_fixar_frukost
Mattis fixar frukost: Error executing script. Unexpected error for call_service at pos 3: a coroutine was expected, got None
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 368, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 571, in _async_call_service_step
await self._async_run_long_action(service_task)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 532, in _async_run_long_action
long_task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 278, in service_handler
await script_entity.async_turn_on(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 382, in async_turn_on
await coro
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 404, in _async_run
return await self.script.async_run(variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1216, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 350, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 368, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 568, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 750, in check_permissions
return await service_handler(call)
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 172, in async_service_handle
await SonosSpeaker.restore_multi(
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 802, in restore_multi
groups = await hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/sonos/speaker.py", line 767, in _restore_groups
hass.async_create_task(speaker.soco.pause())
File "/usr/src/homeassistant/homeassistant/core.py", line 392, in async_create_task
task: asyncio.tasks.Task = self.loop.create_task(target)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 431, in create_task
task = tasks.Task(coro, loop=self, name=name)
TypeError: a coroutine was expected, got None