mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Simplify config entry title for SMLIGHT (#137206)
This commit is contained in:
parent
ddb40cb4a8
commit
c8c6eddc65
@ -217,9 +217,5 @@ class SmlightConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
user_input[CONF_HOST] = self._host
|
||||
|
||||
assert info.model is not None
|
||||
title = (
|
||||
self.context.get("title_placeholders", {}).get(CONF_NAME)
|
||||
or self._device_name
|
||||
or info.model
|
||||
)
|
||||
title = self._device_name or info.model
|
||||
return self.async_create_entry(title=title, data=user_input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user