Integration config_entry

In Meteobridge integration, GitHub - briis/meteobridge: The Meteobridge Integration adds support for retrieving current weather data from a Meteobridge datalogger connected to a local Weather Station., HA logs report an issue on config_entry, the integration will stop work on HA 2025,12.
The problem is at line 106 of [meteobridge/custom_components/meteobridge/config_flow.py at c4358428b43e6a0b5a3289055b5dd8d7703d016a · briis/meteobridge · GitHub].

I don’t know how to fix it. Can I just remove the explicit set?

Thanks.

Yeah, the warning is likely due to upcoming changes in how Home Assistant handles config entries, explicitly setting self.context like that isn’t needed anymore and will raise issues in future versions. You should be able to safely remove or comment out that line if it’s just setting `self. context = {} at the start of the config flow. Just make sure you test the integration after to confirm everything still works as expected.

1 Like

Thanks @mcloom,
I surfed on several add-ons repository to evaluate possible solution.
If I remove the initialization of self.config_entry or if I try to initialize it at empty object {} , the method init() will be useless, then I will try to remove the whole method. In this case the object will be initialized with the default value.