Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log warnings - This will stop working in Home Assistant 2025.1, please create a bug report #1871

Open
sammyke007 opened this issue Dec 20, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@sammyke007
Copy link

The problem

Detected that custom integration 'localtuya' accesses hass.helpers.service, which should be updated to import functions used from service directly at custom_components/localtuya/__init__.py, line 165: hass.helpers.service.async_register_admin_service(. This will stop working in Home Assistant 2025.5, please create a bug report at https://github.com/rospogrigio/localtuya/issues

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

Environment

  • Localtuya version: 5.2.1
  • Home Assistant Core version: 2024.12.5
@sammyke007 sammyke007 added the bug Something isn't working label Dec 20, 2024
@townsmcp
Copy link

I’m getting the same on 2025.1.0b2

@alexcool83
Copy link

Seguo

@Ren656
Copy link

Ren656 commented Jan 3, 2025

I’m getting simular ‘Warnings’:
2025-01-03 15:26:32.069 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'localtuya' accesses hass.helpers.service, which should be updated to import functions used from service directly at custom_components/localtuya/init.py, line 165: hass.helpers.service.async_register_admin_service(. This will stop working in Home Assistant 2025.5, please create a bug report at https://github.com/rospogrigio/localtuya/issues
2025-01-03 15:26:32.615 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'localtuya' calls async_forward_entry_setups for integration localtuya with title: localtuya and entry_id: 01JEM13QH1CNBNWJP61NCNYXHF, during setup without awaiting async_forward_entry_setups, which can cause the setup lock to be released before the setup is done at custom_components/localtuya/init.py, line 275: await hass.config_entries.async_forward_entry_setups(entry, platforms). This will stop working in Home Assistant 2025.1, please create a bug report at https://github.com/rospogrigio/localtuya/issues

@Recte
Copy link

Recte commented Jan 4, 2025

In addition:
Logger: homeassistant.components.vacuum
Source: helpers/deprecation.py:222
integration: vacuum (documentation, issues)

STATE_DOCKED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.DOCKED instead, please report it to the author of the 'localtuya' custom integration
STATE_ERROR was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.ERROR instead, please report it to the author of the 'localtuya' custom integration
STATE_IDLE was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.IDLE instead, please report it to the author of the 'localtuya' custom integration
STATE_PAUSED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.PAUSED instead, please report it to the author of the 'localtuya' custom integration
STATE_RETURNING was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.RETURNING instead, please report it to the author of the 'localtuya' custom integration

@berkavil
Copy link

berkavil commented Jan 5, 2025

same here, seems not to be solved so far...
W.

@user-0209
Copy link

user-0209 commented Jan 8, 2025

same here:

2025-01-08 16:52:30.777 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_ERROR was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.ERROR instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.784 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_IDLE was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.IDLE instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.790 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_PAUSED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.PAUSED instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.796 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_RETURNING was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.RETURNING instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.801 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_CLEANING was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.CLEANING instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.812 WARNING (ImportExecutor_0) [homeassistant.components.vacuum] STATE_DOCKED was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use VacuumActivity.DOCKED instead, please report it to the author of the 'localtuya' custom integration

and later:

title: localtuya and entry_id: 01JGMFMBP9T2D5ZJ1S0R0BWZY4, during setup without awaiting async_forward_entry_setups, which can cause the setup lock to be released before the setup is done at custom_components/localtuya/__init__.py, line 275: await hass.config_entries.async_forward_entry_setups(entry, platforms). This will stop working in Home Assistant 2025.1, please create a bug report at https://github.com/rospogrigio/localtuya/issues
2025-01-08 16:58:33.886 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'localtuya' sets option flow config_entry explicitly, which is deprecated at custom_components/localtuya/config_flow.py, line 396: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/rospogrigio/localtuya/issues

and (sorry):

2025-01-08 16:52:30.631 WARNING (ImportExecutor_0) [homeassistant.components.light] ATTR_COLOR_TEMP was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.640 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_BRIGHTNESS was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.651 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_COLOR was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.656 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_COLOR_TEMP was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.662 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_EFFECT was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use LightEntityFeature.EFFECT instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.667 WARNING (ImportExecutor_0) [homeassistant.components.light] ATTR_COLOR_TEMP was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.674 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_BRIGHTNESS was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.680 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_COLOR was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.704 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_COLOR_TEMP was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use supported_color_modes instead, please report it to the author of the 'localtuya' custom integration
2025-01-08 16:52:30.710 WARNING (ImportExecutor_0) [homeassistant.components.light] SUPPORT_EFFECT was used from localtuya, this is a deprecated constant which will be removed in HA Core 2026.1. Use LightEntityFeature.EFFECT instead, please report it to the author of the 'localtuya' custom integration

@alexcool83
Copy link

Detected that custom integration 'localtuya' calls async_forward_entry_setups for integration localtuya with title: localtuya and entry_id: 01JE0JYQZ4V1G3WGY0SQ0FSTMA, during setup without awaiting async_forward_entry_setups, which can cause the setup lock to be released before the setup is done at custom_components/localtuya/init.py, line 277: await hass.config_entries.async_forward_entry_setups(entry, platforms). This will stop working in Home Assistant 2025.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants