Add config flow to linky (#26076)

* Linky: setup ConfigFlow

* async_track_time_interval

* Review from @MartinHjelmare 1

* Review from @MartinHjelmare 2

* Review from @MartinHjelmare 3

* Review from @MartinHjelmare 4

* black --fast homeassistant tests

* Bump pylinky to 0.4.0 and add error user feedback

* Fix .coveragerc

* Linky platform moved to integration in config.yml and with multiple accounts

* Remove useless logs

* Review from @MartinHjelmare 5

* Add config flow tests

* Add config flow tests : login + fetch on failed
This commit is contained in:
Quentame authored and Martin Hjelmare committed 2019-09-04 07:04:26 +02:00
1 parent ca97bba4b4
commit b4058b5c7f
15 files changed
+452 -58

No files matched your search

@@ -0,0 +1,25 @@
{
"config": {
"title": "Linky",
"step": {
"user": {
"title": "Linky",
"description": "Enter your credentials",
"data": {
"username": "Email",
"password": "Password"
}
}
},
"error":{
"username_exists": "Account already configured",
"access": "Could not access to Enedis.fr, please check your internet connection",
"enedis": "Enedis.fr answered with an error: please retry later (usually not between 11PM and 2AM)",
"wrong_login": "Login error: please check your email & password",
"unknown": "Unknown error: please retry later (usually not between 11PM and 2AM)"
},
"abort":{
"username_exists": "Account already configured"
}
}
}