core: TP-Link LTE component broken

The problem

After upgrading from 2023.5.X to 2023.6.0, the component tplink_lte can no longer be setup. The following error is thrown when starting HA: ` Logger: homeassistant.setup Source: components/tplink_lte/init.py:97 First occurred: 16:43:07 (1 occurrences) Last logged: 16:43:07 Error during setup of component tplink_lte

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/setup.py”, line 286, in _async_setup_component result = await task ^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/tplink_lte/init.py”, line 97, in async_setup await asyncio.wait(tasks) File “/usr/local/lib/python3.11/asyncio/tasks.py”, line 415, in wait raise TypeError(“Passing coroutines is forbidden, use tasks explicitly.”) TypeError: Passing coroutines is forbidden, use tasks explicitly.

I maintain two instances of HA, both connected to the a TP-Link Router each, and the stopped working after I upgraded them to 2023.6.0. Tried googeling, and found that my error is similar to https://github.com/claytonjn/hass-circadian_lighting/issues/227 - both started appearing in 2023.6.0 and states Passing coroutines is forbidden, use tasks explicitly. Judging by the comments, this seems to be a widespread issue among components as of 2023.6.0.

I’ve tried upgrading to latest HA, 2023.6.3, with no difference.

What version of Home Assistant Core has the issue?

2023.6.0

What was the last working version of Home Assistant Core?

2023.5.X

What type of installation are you running?

Home Assistant OS

Integration causing the issue

TP-Link LTE

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink_lte

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 27 (7 by maintainers)

Most upvoted comments

Thank you @cdce8p for trying to take this fix on. I was using the integration before it broke, and I still have the setup with the TP-Link TL-MR6400 hardware. It’s located in my cottage many hours from where I live and doing an important job of keeping my water pipes from freezing. So I am not touching that HA instance unless I am forced to. Too much at risk. But sooner or later I will be visiting the cottage, and then I will try it out if no one else have yet. But that might be months from now unfortunately.

@paarak

Is there a setting I have to turn on in tp-link so HA has access rights to send sms?

From my memory when I did the setup: No. I think I would have added it into the docs (https://www.home-assistant.io/integrations/tplink_lte) in that case. (Even if I’m not a code I still try to contribute by improving the HA docs whenever I can).

cd /config
curl -o- -L https://gist.githubusercontent.com/bdraco/43f8043cb04b9838383fd71353e99b18/raw/core_integration_pr | bash /dev/stdin -d tplink_lte -p 107642

It will install it as custom component. Please remove when 2024.1.3 is released

Please don’t tag contributors just because they change a related file at some point. E.g. I my case it was just a mypy update.

However, I did take a look and it should be a fairly simple fix. Opened #107642. I can’t validate it, so if you’re able feel free to test it out.