Describe the bug
During startup following error is documented in home-assistant.log:
Unexpected error fetching goecharger data: dictionary changed size during iteration
2022-12-12 21:54:34.848 INFO (MainThread) [homeassistant.setup] Setting up goecharger
2022-12-12 21:54:34.848 DEBUG (MainThread) [custom_components.goecharger] async_setup
2022-12-12 21:54:34.848 DEBUG (MainThread) [custom_components.goecharger] Updating status...
2022-12-12 21:54:34.848 DEBUG (MainThread) [custom_components.goecharger] Finished fetching goecharger data in 0.000 seconds (success: True)
2022-12-12 21:54:34.849 INFO (MainThread) [homeassistant.setup] Setup of domain goecharger took 0.0 seconds
2022-12-12 21:54:34.892 INFO (MainThread) [homeassistant.components.camera] Setting up camera.mqtt
2022-12-12 21:54:34.893 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.4 seconds
2022-12-12 21:54:34.895 INFO (MainThread) [homeassistant.setup] Setting up alarm_control_panel
2022-12-12 21:54:34.897 INFO (MainThread) [homeassistant.setup] Setup of domain alarm_control_panel took 0.0 seconds
2022-12-12 21:54:34.898 INFO (MainThread) [homeassistant.setup] Setting up button
2022-12-12 21:54:34.900 INFO (MainThread) [homeassistant.setup] Setup of domain button took 0.0 seconds
2022-12-12 21:54:34.901 INFO (MainThread) [homeassistant.setup] Setting up climate
2022-12-12 21:54:34.908 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds
2022-12-12 21:54:34.911 INFO (MainThread) [homeassistant.setup] Setting up cover
2022-12-12 21:54:34.920 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds
2022-12-12 21:54:34.923 INFO (MainThread) [homeassistant.setup] Setting up fan
2022-12-12 21:54:34.930 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds
2022-12-12 21:54:34.950 INFO (MainThread) [homeassistant.setup] Setting up lock
2022-12-12 21:54:34.952 INFO (MainThread) [homeassistant.setup] Setup of domain lock took 0.0 seconds
2022-12-12 21:54:34.952 INFO (MainThread) [homeassistant.components.switch] Setting up switch.mqtt
2022-12-12 21:54:34.954 INFO (MainThread) [homeassistant.setup] Setting up humidifier
2022-12-12 21:54:34.958 INFO (MainThread) [homeassistant.setup] Setup of domain humidifier took 0.0 seconds
2022-12-12 21:54:34.961 INFO (MainThread) [homeassistant.setup] Setting up light
2022-12-12 21:54:34.963 INFO (MainThread) [homeassistant.setup] Setting up number
2022-12-12 21:54:34.965 INFO (MainThread) [homeassistant.setup] Setup of domain number took 0.0 seconds
2022-12-12 21:54:34.967 INFO (MainThread) [homeassistant.setup] Setting up select
2022-12-12 21:54:34.968 INFO (MainThread) [homeassistant.setup] Setup of domain select took 0.0 seconds
2022-12-12 21:54:34.970 INFO (MainThread) [homeassistant.setup] Setting up siren
2022-12-12 21:54:34.972 INFO (MainThread) [homeassistant.setup] Setup of domain siren took 0.0 seconds
2022-12-12 21:54:34.974 INFO (MainThread) [homeassistant.setup] Setting up text
2022-12-12 21:54:34.976 INFO (MainThread) [homeassistant.setup] Setup of domain text took 0.0 seconds
2022-12-12 21:54:34.979 INFO (MainThread) [homeassistant.setup] Setting up vacuum
2022-12-12 21:54:34.987 INFO (MainThread) [homeassistant.setup] Setup of domain vacuum took 0.0 seconds
2022-12-12 21:54:34.990 DEBUG (MainThread) [custom_components.goecharger] async_Setup_entry
2022-12-12 21:54:34.990 DEBUG (MainThread) [custom_components.goecharger] mappingproxy({'host': '192.168.178.68', 'name': 'ChargerLinks', 'scan_interval': 20, 'correction_factor': 0.9999})
2022-12-12 21:54:34.990 DEBUG (MainThread) [custom_components.goecharger] Updating status...
2022-12-12 21:54:34.991 DEBUG (MainThread) [custom_components.goecharger] update for 'ChargerLinks'..
2022-12-12 21:54:34.991 DEBUG (MainThread) [custom_components.goecharger] async_Setup_entry
2022-12-12 21:54:34.991 DEBUG (MainThread) [custom_components.goecharger] mappingproxy({'host': '192.168.178.67', 'name': 'charger_rechts', 'scan_interval': 20, 'correction_factor': 0.99999})
2022-12-12 21:54:34.991 DEBUG (MainThread) [custom_components.goecharger] Updating status...
2022-12-12 21:54:34.991 DEBUG (MainThread) [custom_components.goecharger] update for 'ChargerLinks'..
2022-12-12 21:54:35.059 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.goecharger
2022-12-12 21:54:35.062 INFO (MainThread) [homeassistant.components.switch] Setting up switch.goecharger
2022-12-12 21:54:35.082 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 1.3 seconds
2022-12-12 21:54:35.087 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.mqtt
2022-12-12 21:54:35.088 INFO (MainThread) [homeassistant.components.alarm_control_panel] Setting up alarm_control_panel.mqtt
2022-12-12 21:54:35.089 INFO (MainThread) [homeassistant.components.button] Setting up button.mqtt
2022-12-12 21:54:35.090 INFO (MainThread) [homeassistant.components.climate] Setting up climate.mqtt
2022-12-12 21:54:35.091 INFO (MainThread) [homeassistant.components.cover] Setting up cover.mqtt
2022-12-12 21:54:35.092 INFO (MainThread) [homeassistant.components.fan] Setting up fan.mqtt
2022-12-12 21:54:35.097 INFO (MainThread) [homeassistant.components.lock] Setting up lock.mqtt
2022-12-12 21:54:35.098 INFO (MainThread) [homeassistant.components.humidifier] Setting up humidifier.mqtt
2022-12-12 21:54:35.099 INFO (MainThread) [homeassistant.components.number] Setting up number.mqtt
2022-12-12 21:54:35.100 INFO (MainThread) [homeassistant.components.select] Setting up select.mqtt
2022-12-12 21:54:35.101 INFO (MainThread) [homeassistant.components.siren] Setting up siren.mqtt
2022-12-12 21:54:35.102 INFO (MainThread) [homeassistant.components.text] Setting up text.mqtt
2022-12-12 21:54:35.108 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds
2022-12-12 21:54:35.109 INFO (MainThread) [homeassistant.components.vacuum] Setting up vacuum.mqtt
2022-12-12 21:54:35.115 DEBUG (MainThread) [custom_components.goecharger.sensor] setup_platform
2022-12-12 21:54:35.115 DEBUG (MainThread) [custom_components.goecharger.switch] setup_platform
2022-12-12 21:54:35.248 INFO (MainThread) [homeassistant.components.light] Setting up light.mqtt
2022-12-12 21:54:35.384 INFO (MainThread) [homeassistant.setup] Setting up hacs
2022-12-12 21:54:35.384 INFO (MainThread) [homeassistant.setup] Setup of domain hacs took 0.0 seconds
2022-12-12 21:54:35.405 INFO (MainThread) [homeassistant.setup] Setting up tts
2022-12-12 21:54:35.439 INFO (SyncWorker_7) [pyfritzhome.fritzhome] Updating Templates ...
2022-12-12 21:54:35.440 INFO (SyncWorker_10) [pyfritzhome.fritzhome] Updating Devices ...
**2022-12-12 21:54:35.439 ERROR (MainThread) [custom_components.goecharger] Unexpected error fetching goecharger data: dictionary changed size during iteration**
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 181, in _async_update_data
return await self.update_method()
File "/config/custom_components/goecharger/__init__.py", line 92, in fetch_states
for chargerName in goeChargers.keys():
RuntimeError: dictionary changed size during iteration
2022-12-12 21:54:35.452 DEBUG (MainThread) [custom_components.goecharger] Finished fetching goecharger data in 0.461 seconds (success: False)
2022-12-12 21:54:35.454 DEBUG (MainThread) [custom_components.goecharger] update for 'charger_rechts'..
To Reproduce
Steps to reproduce the behavior:
open home-assistant.log
search for above error message
Expected behavior
home-assistant.log should contain no error message.
Screenshots
n.a.
Versions (please complete the following information):
Describe the bug During startup following error is documented in home-assistant.log:
Unexpected error fetching goecharger data: dictionary changed size during iteration
To Reproduce Steps to reproduce the behavior:
Expected behavior home-assistant.log should contain no error message.
Screenshots n.a.
Versions (please complete the following information):