jeroenterheerdt / HADailySensor

Sensor for Home Assistant that gets reset at midnight
MIT License
76 stars 19 forks source link

HA Crash #74

Open Tntdruid opened 1 month ago

Tntdruid commented 1 month ago

When i edit any of the daily sesnsor Ha crash every time, is that a new bug?

Tntdruid commented 1 month ago

160 mb log file whit this:

ValueError: Config entry Min Jord Fugt (01J44W1PMAWH6FN2W4YF1T9BFX) for daily.sensor has already been setup! 2024-10-24 10:47:12.387 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Min Jord Fugt for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 131, in async_setup_entry return await hass.data[DATA_COMPONENT].async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 183, in async_setup_entry raise ValueError( ValueError: Config entry Min Jord Fugt (01J44W1PMAWH6FN2W4YF1T9BFX) for daily.sensor has already been setup!

Jajjaman commented 1 month ago

Same problem here.

jeroenterheerdt commented 1 month ago

I am afraid I don't know how to fix this :(

Tntdruid commented 1 month ago

If i delete and recreated it works.

Vladx71 commented 1 week ago

Same here with a simple rename operation....

ValueError: Config entry Gázfogyasztás (Wh) (01JCB26PYRGZB6HEGR104M08JQ) for daily.sensor has already been setup! 2024-11-16 09:22:37.953 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Gázfogyasztás (Wh) for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 133, in async_setup_entry return await hass.data[DATA_COMPONENT].async_setup_entry(entry) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 186, in async_setup_entry raise ValueError( ValueError: Config entry Gázfogyasztás (Wh) (01JCB26PYRGZB6HEGR104M08JQ) for daily.sensor has already been setup! 2024-11-16 09:22:37.957 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Gázfogyasztás (Wh) for sensor