From 7afd19d1979aa73d02d4a0d6b67d49ad92de028d Mon Sep 17 00:00:00 2001 From: rospogrigio Date: Fri, 18 Sep 2020 09:36:18 +0200 Subject: [PATCH] Still prefer to keep '(YAML)' suffix for Integrations imported from YAML, for the moment --- custom_components/localtuya/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/config_flow.py b/custom_components/localtuya/config_flow.py index 19165eb..73a9ded 100644 --- a/custom_components/localtuya/config_flow.py +++ b/custom_components/localtuya/config_flow.py @@ -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])