๐ [BUG] - Deprecated Option
๐ [BUG] - deprecated option
Description
Hello!
A warning has appeared in the logs, apparently it needs to be updated:
Detected that custom integration 'hikvision_axpro' sets option flow config_entry explicitly, which is deprecated at custom_components/hikvision_axpro/config_flow.py, line 178: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/petrleocompel/hikaxpro_hacs/issues
Understanding the Issue
The warning message indicates that the custom integration 'hikvision_axpro' is using a deprecated option, specifically config_entry
, which is set explicitly in the config_flow.py
file. This option is marked as deprecated and will stop working in Home Assistant version 2025.12.
Impact on Home Assistant
The impact of this issue is that the custom integration 'hikvision_axpro' will stop working in Home Assistant version 2025.12. This means that users who rely on this integration will need to update their configuration or switch to a different integration.
Reproduction Steps
To reproduce this issue, follow these steps:
- Install the custom integration 'hikvision_axpro' in Home Assistant.
- Configure the integration to use the deprecated option
config_entry
. - Observe the warning message in the logs.
Integration Version
The integration version is v3 (beta).
HA Version
The Home Assistant version is latest stable (v2025).
Relevant Log Output
2023-02-20 14:30:00 WARNING Detected that custom integration 'hikvision_axpro' sets option flow config_entry explicitly, which is deprecated at custom_components/hikvision_axpro/config_flow.py, line 178: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/petrleocompel/hikaxpro_hacs/issues
Screenshots
# No screenshots available
Solution
Update the Integration
To resolve this issue, the integration 'hikvision_axpro' needs to be updated to use the non-deprecated option. This can be done by modifying the config_flow.py
file to remove the explicit setting of config_entry
.
Create a Bug Report
If you are experiencing this issue, please create a bug report at https://github.com/petrleocompel/hikaxpro_hacs/issues. This will help the developers to identify and fix the issue.
Conclusion
The custom integration 'hikvision_axpro' is using a deprecated option, which will stop working in Home Assistant version 2025.12. To resolve this issue, the integration needs to be updated to use the non-deprecated option. Users who rely on this integration should update their configuration or switch to a different integration.
Additional Information
Integration Documentation
For more information on the integration 'hikvision_axpro', please refer to the documentation at https://github.com/petrleocompel/hikaxpro_hacs.
Home Assistant Documentation
For more information on Home Assistant, please refer to the documentation at https://www.home-assistant.io.
Community Support
If you need help or have questions, please join the Home Assistant community at https://community.home-assistant.io.
๐ [BUG] - deprecated option: Q&A
Q&A
Q: What is the issue with the custom integration 'hikvision_axpro'?
A: The custom integration 'hikvision_axpro' is using a deprecated option, specifically config_entry
, which is set explicitly in the config_flow.py
file. This option is marked as deprecated and will stop working in Home Assistant version 2025.12.
Q: What is the impact of this issue?
A: The impact of this issue is that the custom integration 'hikvision_axpro' will stop working in Home Assistant version 2025.12. This means that users who rely on this integration will need to update their configuration or switch to a different integration.
Q: How can I reproduce this issue?
A: To reproduce this issue, follow these steps:
- Install the custom integration 'hikvision_axpro' in Home Assistant.
- Configure the integration to use the deprecated option
config_entry
. - Observe the warning message in the logs.
Q: What is the recommended solution to this issue?
A: The recommended solution is to update the integration 'hikvision_axpro' to use the non-deprecated option. This can be done by modifying the config_flow.py
file to remove the explicit setting of config_entry
.
Q: Where can I find more information on the integration 'hikvision_axpro'?
A: For more information on the integration 'hikvision_axpro', please refer to the documentation at https://github.com/petrleocompel/hikaxpro_hacs.
Q: Where can I find more information on Home Assistant?
A: For more information on Home Assistant, please refer to the documentation at https://www.home-assistant.io.
Q: How can I get help or support for this issue?
A: If you need help or have questions, please join the Home Assistant community at https://community.home-assistant.io.
Additional Information
Frequently Asked Questions
- Q: What is the difference between a deprecated option and a non-deprecated option? A: A deprecated option is an option that is no longer supported or recommended, while a non-deprecated option is an option that is still supported and recommended.
- Q: How do I know if an option is deprecated or not? A: You can check the documentation for the integration or the Home Assistant documentation to see if an option is deprecated or not.
- Q: What happens if I don't update my integration to use the non-deprecated option? A: If you don't update your integration to use the non-deprecated option, it may stop working in Home Assistant version 2025.12.
Conclusion
The custom integration 'hikvision_axpro' is using a deprecated option, which will stop working in Home Assistant version 2025.12. To resolve this issue, the integration needs to be updated to use the non-deprecated option. Users who rely on this integration should update their configuration or switch to a different integration. If you have any questions or need help, please join the Home Assistant community at https://community.home-assistant.io.