Adjust logging for OptionsFlow deprecation (#130360)

This commit is contained in:
epenet
2024-11-11 21:02:09 +01:00
committed by GitHub
parent e388e9f396
commit f1ce7ee8ce
3 changed files with 14 additions and 10 deletions

View File

@@ -3158,11 +3158,12 @@ class OptionsFlow(ConfigEntryBaseFlow):
@config_entry.setter
def config_entry(self, value: ConfigEntry) -> None:
"""Set the config entry value."""
report(
report_usage(
"sets option flow config_entry explicitly, which is deprecated "
"and will stop working in 2025.12",
error_if_integration=False,
error_if_core=True,
core_behavior=ReportBehavior.ERROR,
core_integration_behavior=ReportBehavior.ERROR,
custom_integration_behavior=ReportBehavior.LOG,
)
self._config_entry = value