You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have filled out the issue template to the best of my ability.
This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
This issue is not a duplicate issue of currently previous issues..
Describe the issue
I was editing the configuration of a chore helper (HA would probably remove the entity and recreate it maybe? It would explain why it is calling entity removal functions); UI showed it succedded, but then the helper started showing 'Unavailable' state and never recovered. Restarting fixed the issue: the helper started working again.
Reproduction steps
Edit a chore helper configuration
Save
HA will show the entity as 'Unavailable'
Debug logs
set 07 13:20:20 scatola hass[2904472]: 2024-09-07 13:20:20.352 ERROR (MainThread) [homeassistant.components.sensor] Error while removing entity sensor.chore_water_closet1_clean
set 07 13:20:20 scatola hass[2904472]: Traceback (most recent call last):
set 07 13:20:20 scatola hass[2904472]: File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/helpers/entity.py", line 1385, in async_remove
set 07 13:20:20 scatola hass[2904472]: await self.__async_remove_impl(force_remove)
set 07 13:20:20 scatola hass[2904472]: File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/helpers/entity.py", line 1401, in __async_remove_impl
set 07 13:20:20 scatola hass[2904472]: await self.async_will_remove_from_hass()
set 07 13:20:20 scatola hass[2904472]: File "/home/homeassistant/.homeassistant/custom_components/chore_helper/chore.py", line 156, in async_will_remove_from_hass
set 07 13:20:20 scatola hass[2904472]: self.hass.data[const.DOMAIN][const.CALENDAR_PLATFORM].remove_entity(
set 07 13:20:20 scatola hass[2904472]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
set 07 13:20:20 scatola hass[2904472]: KeyError: 'calendar'
set 07 13:20:20 scatola hass[2904472]: During handling of the above exception, another exception occurred:
set 07 13:20:20 scatola hass[2904472]: Traceback (most recent call last):
set 07 13:20:20 scatola hass[2904472]: File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 927, in async_reset
set 07 13:20:20 scatola hass[2904472]: await entity.async_remove()
set 07 13:20:20 scatola hass[2904472]: File "/home/homeassistant/hass/lib/python3.12/site-packages/homeassistant/helpers/entity.py", line 1390, in async_remove
set 07 13:20:20 scatola hass[2904472]: self.__remove_future.set_result(None)
set 07 13:20:20 scatola hass[2904472]: asyncio.exceptions.InvalidStateError: invalid state
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered:
System Health details
System Information
Home Assistant Community Store
Dashboards
Recorder
Checklist
Describe the issue
I was editing the configuration of a chore helper (HA would probably remove the entity and recreate it maybe? It would explain why it is calling entity removal functions); UI showed it succedded, but then the helper started showing 'Unavailable' state and never recovered. Restarting fixed the issue: the helper started working again.
Reproduction steps
Debug logs
Diagnostics dump
No response
The text was updated successfully, but these errors were encountered: