Skip to content

Commit

Permalink
style: update config flow display format
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Dec 12, 2024
1 parent 4f06814 commit b7592cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_home/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b7592cd

Please sign in to comment.