Skip to content

Commit

Permalink
Fix #service_prefix - Set previously configured service_prefix as def…
Browse files Browse the repository at this point in the history
…ault (#198)
  • Loading branch information
lukas-hetzenecker authored Oct 22, 2022
1 parent 0ba7b75 commit d12d766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/remote_homeassistant/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async def async_step_init(self, user_input=None):
default=self._default(CONF_LOAD_COMPONENTS),
): cv.multi_select(sorted(domains)),
vol.Required(
CONF_SERVICE_PREFIX, default=slugify(self.config_entry.title)
CONF_SERVICE_PREFIX, default=self.config_entry.options.get(CONF_SERVICE_PREFIX) or slugify(self.config_entry.title)
): str,
vol.Optional(
CONF_SERVICES,
Expand Down

0 comments on commit d12d766

Please sign in to comment.