Running HA Core 2020.12.2 and I am getting the following error in my log which I have not been able to figure out. I am pretty sure nothing has changed in my setup, but I am not sure exactly when this error started appearing. I have updated HA a couple of times recently;
Logger: homeassistant.components.automation.test
Source: components/rest/notify.py:200
Integration: Automation (documentation, issues)
First occurred: 18:37:30 (2 occurrences)
Last logged: 18:37:30
Test: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'update'
While executing automation automation.test
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 250, in _async_step
await getattr(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 460, in _async_call_service_step
await self._async_run_long_action(service_task)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 419, in _async_run_long_action
long_task.result()
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1445, in async_call
task.result()
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/script/__init__.py", line 215, in service_handler
await script_entity.async_turn_on(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/script/__init__.py", line 320, in async_turn_on
await coro
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 1026, in async_run
await asyncio.shield(run.async_run())
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 242, in async_run
await self._async_step(log_exceptions=False)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 250, in _async_step
await getattr(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/script.py", line 457, in _async_call_service_step
await service_task
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1445, in async_call
task.result()
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/notify/__init__.py", line 149, in _async_notify_message_service
await self.async_send_message(**kwargs)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/notify/__init__.py", line 128, in async_send_message
await self.hass.async_add_executor_job(partial(self.send_message, message, **kwargs)) # type: ignore
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/rest/notify.py", line 200, in send_message
params=self._params.update(data),
AttributeError: 'NoneType' object has no attribute 'update'
Here is the automation;
- id: '1605029427131'
alias: Test
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: script.notify_steve
data:
id: 200
message: Test automation
mode: single
Here is the script;
notify_steve:
alias: Notify Steve
sequence:
- service: notify.steves_phone
data:
title: Home Assistant
message: '{{message}}'
target: HA {{id}}
mode: single
And here are the notify entry;
- name: steves_phone
platform: rest
resource: !secret steves_phone_url
message_param_name: text
title_param_name: title
target_param_name: id
I’ve been examining the HA code to see if I can figure out where I am going wrong, but I’m a bit lost.