Skip to content

Detected that custom integration 'localtuya' calls async_forward_entry_setups #1851

@zolakt

Description

@zolakt

The problem

Detected that custom integration 'localtuya' calls async_forward_entry_setups for integration localtuya with title: localtuya and entry_id: 6d28cf3ddfccf70c39f14e8c0d3c76cd, during setup without awaiting async_forward_entry_setups, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1 at custom_components/localtuya/__init__.py, line 277: await hass.config_entries.async_forward_entry_setups(entry, platforms), please create a bug report at https://github.com/rospogrigio/localtuya/issues

I've had this warning for a while. And the deadline for this is fast approaching. Are there any planned fixes for this, or has anyone managed to fix this manually until the fix is released?

Environment

  • Localtuya version: 5.2.2 (HACS)
  • Home Assistant Core version: 2024.11.3
  • Does the device work using the Home Assistant Tuya Cloud component ?
  • Does the device work using the Tinytuya (https://github.com/jasonacox/tinytuya) command line tool ?
  • Was the device working with earlier versions of localtuya ? Which one?
  • [] Are you using the Tuya/SmartLife App in parallel ?

Steps to reproduce

  1. Restart Home Assistant
  2. Check logs in System-Logs

DP dump

not required

Provide Home Assistant traceback/logs

not required

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions