From 8c255be90b175c40fa58cf3dc343a3faf135223f Mon Sep 17 00:00:00 2001 From: Thomas Schamm Date: Thu, 3 Oct 2024 22:32:12 +0200 Subject: [PATCH] Upstream change for config_flow Bumped to boschshcpy==0.2.95 --- custom_components/bosch_shc/config_flow.py | 5 ++--- custom_components/bosch_shc/manifest.json | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/custom_components/bosch_shc/config_flow.py b/custom_components/bosch_shc/config_flow.py index 436f876..c391865 100644 --- a/custom_components/bosch_shc/config_flow.py +++ b/custom_components/bosch_shc/config_flow.py @@ -1,4 +1,5 @@ """Config flow for Bosch Smart Home Controller integration.""" + from os import makedirs import voluptuous as vol @@ -159,12 +160,10 @@ async def async_step_credentials(self, user_input=None): } existing_entry = await self.async_set_unique_id(self.info["unique_id"]) if existing_entry: - self.hass.config_entries.async_update_entry( + return self.async_update_reload_and_abort( existing_entry, data=entry_data, ) - await self.hass.config_entries.async_reload(existing_entry.entry_id) - return self.async_abort(reason="reauth_successful") return self.async_create_entry( title=self.info["title"], diff --git a/custom_components/bosch_shc/manifest.json b/custom_components/bosch_shc/manifest.json index 087ef12..b56155f 100644 --- a/custom_components/bosch_shc/manifest.json +++ b/custom_components/bosch_shc/manifest.json @@ -7,7 +7,7 @@ "documentation": "https://github.com/tschamm/boschshc-hass/blob/master/README.md", "iot_class": "local_push", "issue_tracker": "https://github.com/tschamm/boschshc-hass/issues", - "requirements": ["boschshcpy==0.2.94"], - "version": "0.4.90", + "requirements": ["boschshcpy==0.2.95"], + "version": "0.4.91", "zeroconf": [{ "type": "_http._tcp.local.", "name": "bosch shc*" }] }