From b7592cd4e2a081bf6c6101f8b148e30f98c309ac Mon Sep 17 00:00:00 2001 From: topsworld Date: Thu, 12 Dec 2024 20:57:00 +0800 Subject: [PATCH] style: update config flow display format --- custom_components/xiaomi_home/config_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/xiaomi_home/config_flow.py b/custom_components/xiaomi_home/config_flow.py index 7a2fdae9..b78ba6e1 100644 --- a/custom_components/xiaomi_home/config_flow.py +++ b/custom_components/xiaomi_home/config_flow.py @@ -411,7 +411,7 @@ async def __check_oauth_async(self) -> None: home_info['central_did'] = mips_list[group_id].get('did', None) home_list[home_id] = ( f'{home_info["home_name"]} ' - f'[{len(dev_list)} {tip_devices}{tip_central}]') + f'[ {len(dev_list)} {tip_devices}{tip_central} ]') self._home_list = dict(sorted(home_list.items())) @@ -1004,7 +1004,7 @@ async def async_step_devices_filter(self, user_input=None): 'did', None) home_list[home_id] = ( f'{home_info["home_name"]} ' - f'[ {len(did_list)} {tip_devices}{tip_central}]') + f'[ {len(did_list)} {tip_devices}{tip_central} ]') # Remove deleted item self._home_selected_list = [ home_id for home_id in self._home_selected_list