I am developing an integration which is configurable by the GUI (Config Flow).
All works fine and I can create a new integration and update an existing one without problems.
When I update an existing integration, I want to update (or recreate) the associated entity automatically without having to reload the integration (the case now).
My last configuration step in my OptionsFlow implementation is the following:
async def async_end(self): """Finalization of the ConfigEntry creation""" _LOGGER.debug( "CTOR ConfigFlow.async_finalize - updating entry with: %s", self._infos self.hass.config_entries.async_update_entry(self.config_entry, data=self._infos) return self.async_create_entry(title=None, data=None)
This only change the entry and I wanted to change the associated entity also.
Thank you in advance for you help.