Simplify config entry title for SMLIGHT (#137206)

pull/138270/head
TimL 2025-02-03 10:46:27 +11:00 committed by GitHub
parent 0f641fcb74
commit f846aa4705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -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)