outadoc / home-slide-android

Access your Home Assistant devices quickly from anywhere on your Android device
https://homeslide.app
Apache License 2.0
53 stars 8 forks source link

feat(onboarding): remove use of discovery_info for HASS 2021.10 compatibility #413

Closed outadoc closed 2 years ago

outadoc commented 2 years ago

Home Assistant 2021.10 deprecated the discovery_info route, which caused problems during onboarding.

The new onboarding flow systematically uses the URL provided by the user for authentication (or the local url for zeroconf), and fetches the instance config with the /api/config route once authenticated. The proper base URLs setup in the instance are then saved to preferences.

Closes #410