Closed kaizersoje closed 2 years ago
I can't replicate that, works fine here. I assume you followed the instructions, right?
Yes that's right
I guess the only difference was I was using a different holidays entity first and then changed it to this one
Deleted the automation and created it again. Still getting the same error after the automation runs.
That should not matter. It complains that it does not get the event
data, which it should if it was triggered by the event. So I can't explain that. If you tried to run the automation manually, then this will happen. But you don't, so I do not know why is that. You could debug the automation and see if it actually got the event data or not. But I really can't understand why it would not...
Actually, I did manually trigger it. Could that be the reason why?
Triggered the automation manually. That probably is the reason why the issue occurred.
I did not trigger the automation manually now. But now getting a different error.
- Holiday in week - General Waste: Repeat at step 2: Error executing script. Unexpected error for call_service at pos 2: list.remove(x): x not in list
- Holiday in week - General Waste: Error executing script. Unexpected error for repeat at pos 2: list.remove(x): x not in list
- While executing automation automation.holiday_in_week_general_waste
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 372, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 575, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1667, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/garbage_collection/__init__.py", line 146, in handle_offset_date
await entity.remove_date(collection_date)
File "/config/custom_components/garbage_collection/sensor.py", line 548, in remove_date
self._collection_dates.remove(collection_date)
ValueError: list.remove(x): x not in list
Before you submit a new bug report, please check that
Describe the bug
Getting an error when the Holiday in week automation runs. I have pasted the details below. This is the automation
Configuration
Debug logs