amosyuen / ha-tplink-deco

Home Assistant TP-Link Deco Custom Component
MIT License
172 stars 31 forks source link

Deprecated call async_forward_entry_setup #309

Open tjorim opened 1 month ago

tjorim commented 1 month ago

Problem

Logger: homeassistant.helpers.frame Source: helpers/frame.py:184 First occurred: 01:27:18 (11 occurrences) Last logged: 01:27:49

Detected that custom integration 'tplink_deco' calls async_forward_entry_setup for integration, tplink_deco with title: http://192.168.0.98 and entry_id: 01J2CMRZZ59RQGH8WADMCRJ00N, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/tplink_deco/init.py, line 166: config_entry.async_create_task(, please create a bug report at https://github.com/amosyuen/ha-tplink-deco/issues

TP-Link Deco Version

v3.6.3

Router Model

n/a

Debugging Information

Logging should suffice.

gcoan commented 1 month ago

I get the same message but also get a second message saying it will stop working in 2025.1:

2024-07-12 21:10:39.504 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'tplink_deco' calls async_forward_entry_setup for integration, tplink_deco with title: 192.168.1.101 and entry_id: 760741b0e8f7b7503e54fb7c71a67a81, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/tplink_deco/__init__.py, line 166: config_entry.async_create_task(, please create a bug report at https://github.com/amosyuen/ha-tplink-deco/issues
2024-07-12 21:10:39.554 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration tplink_deco with title: 192.168.1.101 and entry_id: 760741b0e8f7b7503e54fb7c71a67a81, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

tp-link deco version 3.6.2