Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of HA is causing problems with broadcast reception... #23

Closed
BluThunder2k opened this issue Jul 6, 2022 · 5 comments
Closed

Comments

@BluThunder2k
Copy link

Hi,

Add on has been working perfectly....

Till today, version 2202.7.0 of Home Assistant got installed.

If I have broadcast enabled, no data arrives, and my log fills with this:

RuntimeError: dictionary changed size during iteration
2022-07-06 17:04:39 ERROR (MainThread) [custom_components.weatherlink] failed to read broadcast
Traceback (most recent call last):
File "/config/custom_components/weatherlink/init.py", line 132, in __broadcast_loop
await self.__broadcast_loop_once(broadcast)
File "/config/custom_components/weatherlink/init.py", line 120, in __broadcast_loop_once
for update_callback in self._listeners:
RuntimeError: dictionary changed size during iteration
2022-07-06 17:04:42 ERROR (MainThread) [custom_components.weatherlink] failed to read broadcast
Traceback (most recent call last):
File "/config/custom_components/weatherlink/init.py", line 132, in __broadcast_loop
await self.__broadcast_loop_once(broadcast)
File "/config/custom_components/weatherlink/init.py", line 120, in __broadcast_loop_once
for update_callback in self._listeners:
RuntimeError: dictionary changed size during iteration

Disable broadcast and go to say 5 seconds, it continues to work.

Dave

@siku2
Copy link
Owner

siku2 commented Jul 7, 2022

Thanks for the report. I just updated to 2022.7 myself and I can reproduce it.
I'll try to get it fixed tomorrow.

@BluThunder2k
Copy link
Author

Thanks!!

@siku2
Copy link
Owner

siku2 commented Jul 8, 2022

Just released version 0.5.3, which should contain a fix for this bug. Let me know whether the new version fixes the problem for you.

@raf10gh
Copy link

raf10gh commented Jul 10, 2022

Working for me thanks for the quick fix.

@siku2
Copy link
Owner

siku2 commented Jul 11, 2022

Alright, closing this then

@siku2 siku2 closed this as completed Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants