bouwew / sems2mqtt

GoodWe SEMS MQTT-componenent for Home Assistant
MIT License
10 stars 9 forks source link

blocking calls at custom_components/sems2mqtt/__init__.py #19

Closed grehund closed 2 years ago

grehund commented 2 years ago

Logger: homeassistant.util.async Source: util/async.py:144 First occurred: 8:46:23 AM (53 occurrences) Last logged: 11:16:53 AM

Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for sems2mqtt doing blocking calls at custom_components/sems2mqtt/init.py, line 183: time.sleep((2*i) ** 2)

bouwew commented 2 years ago

Sorry, I didn't notice your Issues until today.

I will have a look at this tonight.

grehund commented 2 years ago

Thanks. Let me know if you need any more info from me.

bouwew commented 2 years ago

Can you please test v0.4.8b0? Does the change I made solve the issue?

grehund commented 2 years ago

I have just installed 0.4.8b0. The error hasn't reappeared in the logs after a restart. I will check again in 12 hours.

grehund commented 2 years ago

Issue is resolved by 0.4.8b0, thanks. Working without error on 2022.3.

bouwew commented 2 years ago

Good to read, thanks! I'll release v0.4.8.