From 2446d69c74fe884954f0364ac535f8579d5dbb24 Mon Sep 17 00:00:00 2001 From: topsworld Date: Mon, 13 Jan 2025 15:48:32 +0800 Subject: [PATCH] feat: update notify after rm device --- custom_components/xiaomi_home/miot/miot_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/xiaomi_home/miot/miot_client.py b/custom_components/xiaomi_home/miot/miot_client.py index 01962b2..203c377 100644 --- a/custom_components/xiaomi_home/miot/miot_client.py +++ b/custom_components/xiaomi_home/miot/miot_client.py @@ -869,6 +869,8 @@ class MIoTClient: domain='miot_devices', name=f'{self._uid}_{self._cloud_server}', data=self._device_list_cache) + # Update notify + self.__request_show_devices_changed_notify() def __get_exec_error_with_rc(self, rc: int) -> str: err_msg: str = self._i18n.translate(key=f'error.common.{rc}')