Add Airly integration (#26375)
* Add Airly integration * Update .coveragerc file * Remove AVAILABLE_CONDITIONS and fix device_class * Don't create client on every update * Rename client to session * Rename state_attributes to device_state_attributes * Remove log latitude and longitude * Fix try...except * Change latitude and longitude to HA defaults * _show_config_form doesn't need coroutine * Simplify config_flow errors handlig * Preetier * Remove unnecessary condition * Change sensor platform to air_quality * Remove PM1 * Make unique_id more unique * Remove , * Add tests for config_flow * Move conf to CONFIG * Remove domain from unique_id * Change the way update of attrs * Language and attrs * Fix attrs * Add aiohttp error handling * Throttle as decorator * Suggested change * Suggested change * Invert condition * Cleaning * Add tests * Polish no sesnor error handling * Better strings * Fix test_invalid_api_key * Fix documentation url * Remove unnecessary test * Remove language option * Fix test_invalid_api_key once again * Sort imports * Remove splits in strings
This commit is contained in:
1 parent
4b4a290f71
commit
8ba4ee1012
16 files changed
+2845
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "Airly",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Airly",
|
||||
"description": "Set up Airly air quality integration. To generate API key go to https://developer.airly.eu/register",
|
||||
"data": {
|
||||
"name": "Name of the integration",
|
||||
"api_key": "Airly API key",
|
||||
"latitude": "Latitude",
|
||||
"longitude": "Longitude"
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"name_exists": "Name already exists.",
|
||||
"wrong_location": "No Airly measuring stations in this area.",
|
||||
"auth": "API key is not correct."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user