codyc1515 / ha-yeelock

Add your Yeelock to Home Assistant with BLE
https://www.yeeloc.com
MIT License
16 stars 4 forks source link

Switch authentication from phone to email #10

Open skrashevich opened 9 months ago

skrashevich commented 9 months ago

Changed the Yeelock integration authentication method from using a phone number and country code to using an email address. Updated the related API endpoint and parameters for login, removed the phone and country code fields from the config flow, and updated the user interface strings to reflect these changes.

This commit improves the user experience by simplifying the login process and aligns with the Yeelock's updated authentication system that now uses email instead of phone numbers. It also includes modifications to the API calls to use the new endpoint and removes obsolete constants and schema entries.

Fix #8

codyc1515 commented 9 months ago

Thank you. I will take a look at this. Ideally we can retain both methods.

codyc1515 commented 6 months ago

Can we retain both methods?

skrashevich commented 6 months ago

Can we retain both methods?

it's possible. but i can't do it: in my country auth by phone is not available