Added reauth flow, much better error handling on setup

### Feature
* Now supports reauthentication if credentials have expired/no longer work
* Better error handling when configuring integration, will notify user of incorrect credentials

### Fix
* Removed Owlet specific constants, now using homeassistant generic constants
* On initialisation the integration would crash when trying to update the auth token, the integration would then have to be deleted and setup again
This commit is contained in:
RyanClark123
2023-05-12 16:46:07 +01:00
parent bb0e8cc9c9
commit 3e147aa914
15 changed files with 234 additions and 61 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
{
"name": "Owlet",
"hacs": "1.31.1",
"hacs": "1.32.1",
"homeassistant": "2023.04.1",
"zip_release": true,
"filename": "owlet.zip"
}