diff --git a/custom_components/person_location/config_flow.py b/custom_components/person_location/config_flow.py index eaadb12..edff179 100644 --- a/custom_components/person_location/config_flow.py +++ b/custom_components/person_location/config_flow.py @@ -140,11 +140,11 @@ async def _async_save__integration_config_data(self): # return self.async_create_entry(title="", data={}) # return self.async_create_entry(title="", data=None) return self.async_abort(reason="normal exit") - else: - self._errors["base"] = "nothing_was_changed" - return await self.async_step_user() - else: - return self.async_create_entry(title=location_name, data=self._user_input) + self._errors["base"] = "nothing_was_changed" + return await self.async_step_user() + return self.async_create_entry( + title=location_name, + data=self._user_input) async def _async_show_config_geocode_form( self, user_input @@ -390,6 +390,11 @@ async def _test_osm_api_key(self, osm_api_key): # ------------------------------------------------------------------ + async def async_step_reconfigure(self, user_input=None): + return await self.async_step_user(user_input) + + # ------------------------------------------------------------------ + @staticmethod @callback def async_get_options_flow(config_entry): diff --git a/custom_components/person_location/translations/en.json b/custom_components/person_location/translations/en.json index abfc32f..3746285 100644 --- a/custom_components/person_location/translations/en.json +++ b/custom_components/person_location/translations/en.json @@ -2,7 +2,7 @@ "config": { "step": { "user": { - "title": "(1 of 3) Person Location Geocode Configuration", + "title": "(1 of 3) Person Location Geocode", "description": "Reverse geocoding can be done using one (or more) of three services. If you need help with the configuration or obtaining keys, have a look at More Details [**here**](https://github.com/rodpayne/home-assistant_person_location/blob/master/README.md#configuration-parameters).", "data": { "language": "Google Language", @@ -13,7 +13,7 @@ } }, "sensors": { - "title": "(2 of 3) Person Location Sensors Configuration", + "title": "(2 of 3) Person Location Sensors", "description": "Individual sensors can be created so that template sensors do not need to be configured. Choose from this list: altitude, bread_crumbs, direction, driving_miles, driving_minutes, geocoded, latitude, longitude, meters_from_home, miles_from_home. If you need help with the configuration, have a look [**here**](https://github.com/rodpayne/home-assistant_person_location/blob/master/README.md#configuration-parameters).", "data": { "create_sensors": "Sensors to be created", @@ -21,7 +21,7 @@ } }, "triggers": { - "title": "(3 of 3) Person Location Triggers Configuration", + "title": "(3 of 3) Person Location Triggers", "description": "You can follow updates of all Person entities rather than configuring individual Triggers. The individual Triggers may be specified by clicking CONFIGURE for the integration. If you need help with the configuration, have a look [**here**](https://github.com/rodpayne/home-assistant_person_location/blob/master/README.md#configuration-parameters).", "data": { "follow_person_integration": "Follow Person Integration"