Still prefer to keep '(YAML)' suffix for Integrations imported from YAML, for the moment

This commit is contained in:
rospogrigio
2020-09-18 09:36:18 +02:00
committed by rospogrigio
parent e79b4cf619
commit 7afd19d197

View File

@@ -200,7 +200,7 @@ class LocaltuyaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
CONF_ENTITIES: self.entities,
}
self._abort_if_unique_id_configured(updates=config)
return self.async_create_entry(title=config[CONF_FRIENDLY_NAME], data=config)
return self.async_create_entry(title=f"{config[CONF_FRIENDLY_NAME]} (YAML)", data=config)
def _set_platform(self, platform):
integration_module = ".".join(__name__.split(".")[:-1])