diff --git a/custom_components/deutschebahn/config_flow.py b/custom_components/deutschebahn/config_flow.py index c4575e3..6a005f2 100644 --- a/custom_components/deutschebahn/config_flow.py +++ b/custom_components/deutschebahn/config_flow.py @@ -30,9 +30,9 @@ async def async_step_user(self, user_input=None): errors = {} if user_input is not None: - await self.async_set_unique_id(user_input[CONF_START]) + await self.async_set_unique_id(user_input[CONF_START] + " to " + user_input[CONF_DESTINATION]) self._abort_if_unique_id_configured() - return self.async_create_entry(title=user_input[CONF_START] + "-" + user_input[CONF_DESTINATION], data=user_input) + return self.async_create_entry(title=user_input[CONF_START] + " - " + user_input[CONF_DESTINATION], data=user_input) _LOGGER.debug( "Initialized new deutschebahn with id: {unique_id}"