delzear / hass-formulaoneapi

Formula One API Integration Into Home Assistant
53 stars 10 forks source link

Entity id already exists since update to 0.1.7 #43

Closed u20p17 closed 1 year ago

u20p17 commented 1 year ago

Hi all, I updated to the latest version of this repository and after restart I get the following error:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:658
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 07:02:35 (1 occurrences)
Last logged: 07:02:35

Entity id already exists - ignoring: sensor.formula_one_sensor_drivers

Before the update everything was working like expected. What can I do in order to fix the issue?

BR

delzear commented 1 year ago

I did not see this problem while updating but I have the same! I will look into this!

de-Techneut commented 1 year ago

I think this is related, since the 0.1.7 update I get the following error in the log files as well:


Source: helpers/entity.py:515
First occurred: 7 October 2022 at 11:39:51 (1001 occurrences)
Last logged: 10:38:51

Update of sensor.formula_one_sensor_last_result is taking over 10 seconds
Update of binary_sensor.protection_window is taking over 10 seconds
Update of sensor.skin_type_4_safe_exposure_time is taking over 10 seconds
Update of sensor.formula_one_sensor_drivers is taking over 10 seconds
Update of sensor.skin_type_1_safe_exposure_time is taking over 10 seconds
brhahlen commented 1 year ago
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:658
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 16:51:52 (1 occurrences)
Last logged: 16:51:52

Entity id already exists - ignoring: sensor.formula_one_sensor_drivers

Same problem here

mobiledude commented 1 year ago

Same error as above, but I also noticed this one. It might be related.

Logger: homeassistant Source: helpers/entity.py:661 First occurred: 20:19:48 (1 occurrences) Last logged: 20:19:48

Error doing job: Future exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/formulaone_api/formulaonesensor.py", line 47, in timer self.schedule_update_ha_state(True) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 661, in schedule_update_ha_state self.hass.add_job(self.async_update_ha_state(force_refresh)) AttributeError: 'NoneType' object has no attribute 'add_job'

de-Techneut commented 1 year ago

Is it possible to revert to the 1.6.0? That one didn't had these issues

marcokreeft87 commented 1 year ago

Is it possible to revert to the 1.6.0? That one didn't had these issues

You can always go back to 1.6.0 on your HA. Just redownload the integration

marcokreeft87 commented 1 year ago

I have found the issue. Update incoming