mvdwetering / yamaha_ynca

Custom integration for Home Assistant to support Yamaha AV receivers with the YNCA protocol (serial and network).
Apache License 2.0
40 stars 4 forks source link

Detected that custom integration 'yamaha_ynca' sets "minor_version" directly to update a config entry #290

Closed mvdwetering closed 2 months ago

mvdwetering commented 3 months ago

Describe the bug

Log shows following warnings about migration changing version

2024-06-16 18:13:46.352 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'yamaha_ynca' sets "minor_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/yamaha_ynca/migrations.py, line 131: config_entry.minor_version = 2, please create a bug report at https://github.com/mvdwetering/yamaha_ynca/issues
2024-06-16 18:13:46.353 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'yamaha_ynca' sets "minor_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/yamaha_ynca/migrations.py, line 112: config_entry.minor_version = 3, please create a bug report at https://github.com/mvdwetering/yamaha_ynca/issues
2024-06-16 18:13:46.354 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'yamaha_ynca' sets "minor_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/yamaha_ynca/migrations.py, line 83: config_entry.minor_version = 4, please create a bug report at https://github.com/mvdwetering/yamaha_ynca/issues

To Reproduce Steps to reproduce the behavior:

  1. Have an old config entry which needs migration
  2. Trigger migration

Expected behavior No warnings in the Home Assistant lgos

Diagnostics N.A.

Logging See description

Environment Provide details about the versions you are using, which helps to reproduce and find the issue quicker.

Additional context No

mvdwetering commented 2 months ago

Fixed with PR #303