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

[Bug]: custom integration 'localtuya' sets "version" directly to update a config entry #224

Closed
3 tasks
mocarela opened this issue May 5, 2024 · 2 comments
Closed
3 tasks
Labels
bug Something isn't working

Comments

@mocarela
Copy link

mocarela commented May 5, 2024

LocalTuya Version

3.2.5.2

Home Assistant Version

2024.3.1

Environment

  • Does the device work using the Home Assistant Tuya Cloud component?
  • Is this device connected to another local integration, including Home Assistant and any other tools?
  • The devices are within the same HA subnet, and they get discovered automatically when I add them

What happened?

Two warnings in the logs on each HA start.

Steps to reproduce.

  1. Stop HA container
  2. Add integration in custom_components
  3. Start HA container

Relevant log output

2024-05-05 14:09:24.395 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'localtuya' sets "version" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/localtuya/__init__.py, line 287: config_entry.version = 4, please create a bug report at https://github.com/xZetsubou/hass-localtuya/issues

Diagnostics information.

No response

@mocarela mocarela added the bug Something isn't working label May 5, 2024
@xZetsubou
Copy link
Owner

xZetsubou commented May 5, 2024

What is that warning 😸 I'm on HA 2024.5.0b1 and never seen this warning before. I'll look into this however not sure if it's bugged for 2024.3.1 or not.

edit: no wonder this didn't shows up I think it because it you probably just installed this fork and the entry migrate updated the config entry.

@xZetsubou xZetsubou added the master/next-release Fixed in master branch, Will be ready in the next release label May 5, 2024
Copy link

This issue was closed because it was resolved on the release:

@github-actions github-actions bot added stale and removed master/next-release Fixed in master branch, Will be ready in the next release stale labels May 26, 2024
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

2 participants