Describe the bug
After installing version 2024.3.0, there are multiple deprecation warnings and some tests fail.
That said, the integration works properly as these are only deprecation warnings.
Error message
Deprecation warnings:
# Triggered by Migration V2
WARNING:homeassistant.helpers.frame:Detected code that sets "data" 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. Please report this issue.
WARNING:homeassistant.helpers.frame:Detected code that sets "options" 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. Please report this issue.
WARNING:homeassistant.helpers.frame:Detected that custom integration 'econnect_metronet' 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/econnect_metronet/__init__.py, line 57: config.version = 2, please report it to the author of the 'econnect_metronet' custom integration
WARNING homeassistant.helpers.frame:frame.py:124 Detected code that sets "data" 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. Please report this issue.
WARNING homeassistant.helpers.frame:frame.py:124 Detected code that sets "options" 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. Please report this issue.
WARNING homeassistant.helpers.frame:frame.py:156 Detected that custom integration 'econnect_metronet' 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/econnect_metronet/__init__.py, line 57: config.version = 2, please report it to the author of the 'econnect_metronet' custom integration
# Triggered by Migration V3
WARNING:homeassistant.helpers.frame:Detected code that sets "data" 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. Please report this issue.
WARNING:homeassistant.helpers.frame:Detected code that sets "options" 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. Please report this issue.
WARNING:homeassistant.helpers.frame:Detected that custom integration 'econnect_metronet' 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/econnect_metronet/__init__.py, line 66: config.version = 3, please report it to the author of the 'econnect_metronet' custom integration
WARNING homeassistant.helpers.frame:frame.py:124 Detected code that sets "data" 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. Please report this issue.
WARNING homeassistant.helpers.frame:frame.py:124 Detected code that sets "options" 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. Please report this issue.
WARNING homeassistant.helpers.frame:frame.py:156 Detected that custom integration 'econnect_metronet' 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/econnect_metronet/__init__.py, line 66: config.version = 3, please report it to the author of the 'econnect_metronet' custom integration
Describe the bug After installing version
2024.3.0
, there are multiple deprecation warnings and some tests fail.That said, the integration works properly as these are only deprecation warnings.
Error message Deprecation warnings:
Tests failing:
Expected behavior No deprecation warning or failing tests.
Additional context This must be fixed before version
2024.9
otherwise the integration will stop working.To Reproduce Run tests:
Environment