mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Adjust logging for OptionsFlow deprecation (#130360)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user