From fdca601c409f619b1c98a20e6ea990317cce20c7 Mon Sep 17 00:00:00 2001 From: Alone Date: Wed, 6 Nov 2024 16:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix=20for=20customizing=20(#1927?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/xiaomi_miot/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/config_flow.py b/custom_components/xiaomi_miot/config_flow.py index 9c448fc84..690fe84d8 100644 --- a/custom_components/xiaomi_miot/config_flow.py +++ b/custom_components/xiaomi_miot/config_flow.py @@ -522,7 +522,7 @@ async def async_step_customizing(self, user_input=None): for v in self.hass.data[DOMAIN].values(): if isinstance(v, dict): if mod := v.get('miio_info', {}).get(CONF_MODEL): - models.append(mod) + models[mod] = v v = v.get(CONF_XIAOMI_CLOUD) if isinstance(v, MiotCloud): mic = v