Hi All,
I have some notifications send by Pushover. I see that notifications with
priority: 2
Gives a error. When i change this to 0 or 1 then the notification is send normal.
On the site it Pushover you can use different priorities include the 2:
https://pushover.net/api#priority
Here the error log:
2020-11-04 13:34:06 ERROR (MainThread) [homeassistant.components.automation.notification_update_available_notification] Notification - Update Available Notification: Error executing script. Unexpected error for call_service at pos 1: 400: retry is invalid
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 253, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 463, in _async_call_service_step
await self._async_run_long_action(service_task)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 422, in _async_run_long_action
long_task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1448, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1483, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 215, in service_handler
await script_entity.async_turn_on(
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 320, in async_turn_on
await coro
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1010, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 710, in async_run
await super().async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 245, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 253, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 460, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1448, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1483, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 147, in _async_notify_message_service
await self.async_send_message(**kwargs)
File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 126, in async_send_message
await self.hass.async_add_executor_job(partial(self.send_message, message, **kwargs)) # type: ignore
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/pushover/notify.py", line 97, in send_message
self.pushover.send_message(
File "/usr/local/lib/python3.8/site-packages/pushover_complete/pushover_api.py", line 198, in send_message
return self._send_message(user, message, device, title, url, url_title, image, priority, retry, expire,
File "/usr/local/lib/python3.8/site-packages/pushover_complete/pushover_api.py", line 160, in _send_message
return self._generic_post('messages.json', payload=payload, session=session)
File "/usr/local/lib/python3.8/site-packages/pushover_complete/pushover_api.py", line 88, in _generic_post
raise BadAPIRequestError('{}: {}'.format(resp.status_code, ': '.join(resp_body.get('errors'))))
pushover_complete.error.BadAPIRequestError: 400: retry is invalid