Closed ccdoggy closed 6 months ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (todo
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
todo documentation todo source (message by IssueLinks)
Looks like this might actually be a flavor of 112647 Somehow I missed tracking that issue down, sorry about submitting a dup.
ccdoggy, I have exactly the same issue. It's happened twice over the past 3 days. Two of the three to-do lists have become unavailable. I recreated the lists manually, and again two of three became unavailable again. One of the to-do lists seems to be persistent and it was the first list I'd created. Also noticed that the to-do list entity seems to still exist when I try to recreate with the same name e.g. "Smart home ideas". I'm using 2024.3, HASSOS on RPi4. See dashboard photo showing unavailable to-do lists.
@home-assistant/core - please help.
Duplicate of #112647
The problem
2024.3.0 - Long running install - Reboots are leading to ToDo lists disappearing though they still exist somewhere as I cannot recreate them with the same name. I recently upgrade to 2024.3.0, made some changes to my dashboard, created a few more lists for the wife, then had to reboot it as I removed some stale integrations. After which ToDo lists appear to be disappearing from the GUI. They are not present in the ToDo list section nor viewable with the cards which still reference them.
If I attempt to create a new list with the same name (pulled from the card) it claims it already exists.
If I create a test list, put a few things into it and reboot, it then disappears.
There is one really old list which is resilient to this, at least 4 other lists have disappeared.
Reboots are Settings --> triple dots --> restart HA --> Restart HA
Rebooting the system makes no difference.
Today I took a screen shot of the lists, rebooted, and another disappeared. I have not been able to track down the config file to see what is in it yet: config.storage\local_todo.ha_actions.ics
There are a few reports of this though no submitted issue I can find. See comment in 2024.3.0 release notes by DaleC on March 7th: https://community.home-assistant.io/t/2024-3-drag-n-drop-it-like-its-hot/700140/34
Anyone else seeing an issue with the local todo list? Since the upgrade all my todo list items got removed and I’m getting the below error in the logs. If i try and recreate the items on the list they don’t get created when i click the add button. But if i open the file config.storage\local_todo.ha_actions.ics i see the items in there
Also: https://www.reddit.com/r/homeassistant/comments/1b9xfjc/to_do_lists_disappearing_after_reboot/
My case aligns with DaleC's logs. The only failure I see is the timzone:
`Logger: homeassistant.components.todo Source: helpers/entity_platform.py:350 integration: To-do list (documentation, issues) First occurred: 9:53:27 AM (5 occurrences) Last logged: 9:53:28 AM
Error while setting up local_todo platform for todo Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ical/component.py", line 139, in init super().init(**data) File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 341, in init raise validation_error pydantic.error_wrappers.ValidationError: 1 validation error for Todo root Failed to validate: 20240309T090102, errors: (["Expected DATE-TIME TZID value 'CST' to be valid timezone", "Expected value to match DATE pattern: '20240309T090102'"]) (type=value_error)
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform await asyncio.shield(awaitable) File "/usr/src/homeassistant/homeassistant/components/local_todo/todo.py", line 71, in async_setup_entry calendar = IcsCalendarStream.calendar_from_ics(ics) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ical/calendar_stream.py", line 82, in calendar_from_ics stream = cls.from_ics(content) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ical/calendar_stream.py", line 69, in from_ics return cls(result) ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ical/component.py", line 139, in init super().init(data) File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 339, in init values, fields_set, validation_error = validate_model(pydantic_self.class, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 1076, in validatemodel v, errors = field.validate(value, values, loc=field.alias, cls=cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 895, in validate v, errors = self._validate_sequence_like(v, values, loc, cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 928, in _validate_sequence_like r, ee = self._validatesingleton(v, values, v_loc, cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1094, in _validate_singleton value, error = field.validate(v, values, loc=loc, cls=cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 884, in validate v, errors = self._validate_singleton(v, values, loc, cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1101, in _validate_singleton return self._apply_validators(v, values, loc, cls, self.validators) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1157, in _apply_validators v = validator(cls, v, values, self, self.model_config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pydantic/class_validators.py", line 337, in
return lambda cls, v, values, field, config: validator(v)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 711, in validate
return cls(**value)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ical/component.py", line 139, in init
super().init(**data)
File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 339, in init__
values, fields_set, validation_error = validate_model(pydantic_self.class, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 1076, in validatemodel
v, errors = field.validate(value, values, loc=field.alias, cls=cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 895, in validate
v, errors = self._validate_sequence_like(v, values, loc, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 928, in _validate_sequence_like
r, ee = self._validatesingleton(v, values, v_loc, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1094, in _validate_singleton
value, error = field.validate(v, values, loc=loc, cls=cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 884, in validate
v, errors = self._validate_singleton(v, values, loc, cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1101, in _validate_singleton
return self._apply_validators(v, values, loc, cls, self.validators)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/fields.py", line 1157, in _apply_validators
v = validator(cls, v, values, self, self.model_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/class_validators.py", line 337, in
return lambda cls, v, values, field, config: validator(v)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 711, in validate
return cls(**value)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ical/todo.py", line 203, in init
super().init(**data)
File "/usr/local/lib/python3.12/site-packages/ical/component.py", line 141, in init
raise CalendarParseError(f"Failed to parse component: {err}") from err
ical.exceptions.CalendarParseError: Failed to parse component: 1 validation error for Todo
root__
Failed to validate: 20240309T090102, errors: (["Expected DATE-TIME TZID value 'CST' to be valid timezone", "Expected value to match DATE pattern: '20240309T090102'"]) (type=value_error)`
What version of Home Assistant Core has the issue?
core-2024.3.0
What was the last working version of Home Assistant Core?
core-2024.2.?
What type of installation are you running?
Home Assistant OS
Integration causing the issue
To-Do lists
Link to integration documentation on our website
https://www.home-assistant.io/integrations/todo/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response