Add a config flow for flume (#33419)

* Add a config flow for flume

* Sensors no longer block Home Assistant startup
since the flume api can take > 60s to respond on
the first poll

* Update to 0.4.0 to resolve the blocking startup issue

* Missed conversion to FlumeAuth

* FlumeAuth can do i/o if the token is expired, wrap it

* workaround async_add_entities updating disabled entities

* Fix conflict
This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-04-08 16:29:59 -05:00
1 parent fb8f8133a0
commit ac9429988b
13 files changed
+527 -61

No files matched your search

@@ -0,0 +1,25 @@
{
"config" : {
"error" : {
"unknown" : "Unexpected error",
"invalid_auth" : "Invalid authentication",
"cannot_connect" : "Failed to connect, please try again"
},
"step" : {
"user" : {
"description" : "In order to access the Flume Personal API, you will need to request a 'Client ID' and 'Client Secret' at https://portal.flumetech.com/settings#token",
"title" : "Connect to your Flume Account",
"data" : {
"username" : "Username",
"client_secret" : "Client Secret",
"client_id" : "Client ID",
"password" : "Password"
}
}
},
"abort" : {
"already_configured" : "This account is already configured"
},
"title" : "Flume"
}
}