mac-zhou / midea-ac-py

Home Assistant Custom Integration for Midea Group(Hualing, Senville, Klimaire, AirCon, Century, Pridiom, Thermocore, Comfee, Toshiba, Carrier, Goodman, Friedrich, Samsung, Kenmore, Trane, Lennox, LG and much more) Air Conditioners via LAN.
MIT License
531 stars 102 forks source link

Detected blocking call inside the event loop #125

Closed chenquanhao closed 2 years ago

chenquanhao commented 2 years ago

Describe the bug (描述一下问题) HA日志提示如下

Screenshots / Logs / Pcap File(屏幕截图/日志/抓包文件) Logger: homeassistant.util.async Source: util/async.py:144 First occurred: 21:16:21 (1 occurrences) Last logged: 21:16:21

Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for midea_ac doing blocking calls at custom_components/midea_ac/climate.py, line 79: device.authenticate(device_k1, device_token)

Versions (版本信息)

mac-zhou commented 2 years ago

more log plaese

chenquanhao commented 2 years ago

2022-02-17 13:37:03 DEBUG (MainThread) [msmart.lan] Attempting new connection to 192.168.1.41:6444 2022-02-17 13:37:03 DEBUG (MainThread) [msmart.lan] Socket 192.16**8.1.4:41690 -> 192.168.1.41:6444 retries: 0 time: 0.0 tcpkey: None 2022-02-17 13:37:03 DEBUG (MainThread) [msmart.lan] Sending 192.168.1.4:41690 -> 192.168.1.41:6444 retries: 0 time: 0.0 message: 8370004020000000a73e83d6b362cefacd2637e396b09fd8e849e75c2deaf00fafcd566edba9ff3933f5ac3249d9c2594167067a6fdc83320ec4e49bf0cb85acf68b0c6856a36bb5 2022-02-17 13:37:04 DEBUG (MainThread) [msmart.lan] Recv 192.168.1.4:41690 -> 192.168.1.41:6444 retries: 0 time: 0.61 Response: 8370004020010000d41aff9f6dc7b88e646cc10832bc1b2bfe5e75df56a7b9a23c936fde4c3c6365b3dddb9073adc1fe2609a32a419804d0a41209206f559f9b406c9dc755c769fb 2022-02-17 13:37:04 INFO (MainThread) [msmart.lan] Got TCP key for 192.168.1.4:41690 -> 192.168.1.41:6444 retries: 0 time: 0.62 af26b6ca55d5c15b9c4e9a605f4b2a2eecd3d4412f23cc4798fecdef1863a086 2022-02-17 13:37:04 WARNING (MainThread) [homeassistant.util.async] Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for midea_ac doing blocking calls at custom_components/midea_ac/climate.py, line 79: device.authenticate(device_k1, device_token)

2022-02-17 13:37:41 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.40:5555. TcpTimeoutException: Connecting to 192.168.1.40:5555 timed out (1.0 seconds)

2022-02-17 13:38:54 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.1.40:5555. OSError: Connect call failed ('192.168.1.40', 5555) --------------------------------------------------------------------------------------------------------------------------------**

mac-zhou commented 2 years ago

just WARNING, it's ok.