Skip to content

Commit

Permalink
🔧 fix login with notificationUrl (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 18, 2021
1 parent f2928c4 commit 18f0be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def check_xiaomi_account(hass, user_input, errors, renew_devices=False):
if url := mic.attrs.pop('notificationUrl'):
persistent_notification.create(
hass,
f'The login of Xiaomi account needs security verification. [Click here]({url}) to continue!',
f'The login of Xiaomi account needs security verification. [Click here]({url}) to continue!\n'
f'本次登陆小米账号需要安全验证,[点击这里]({url})继续!',
f'Login to Xiaomi: {mic.username}',
f'{DOMAIN}-login',
Expand Down

0 comments on commit 18f0be7

Please sign in to comment.