Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
Yuval Aboulafia
2a0c36589f
Centralize some Airly constants ( #45985 )
2021-02-05 12:41:36 +01:00
Maciej Bieniek
2e50c1be8e
Add nearest method to get data for Airly integration ( #44288 )
...
* Add nearest method
* Add tests
* Move urls to consts
* Simplify config flow
* Fix tests
* Update tests
* Use in instead get
* Fix AirlyError message in tests
* Fix manual update entity tests
* Clean up tests
* Fix after rebase
* Increase test coverage
* Format the code
* Fix after rebase
2021-01-04 23:14:45 +01:00
springstan
c0c6a457bd
Update air_quality to use CoordinatorEntity ( #39410 )
2020-08-30 14:26:03 +02:00
Maciej Bieniek
8258dcf41d
Add device_info property and simplify generation of unique_id for Airly integration ( #38479 )
2020-08-05 12:55:14 +02:00
Maciej Bieniek
ad0560ef37
Improve tests for Airly integration ( #38357 )
...
* Add tests
* More tests
* Add PARALLEL_UPDATES
* Change Quality scale to platinum
* Change PARALLEL_UPDATES value
2020-07-30 08:41:18 -10:00
Maciej Bieniek
6a4c25b668
Switch airly to async_on_remove ( #34498 )
2020-04-21 14:12:08 +02:00
Maciej Bieniek
16670a38a4
Dynamic update interval for Airly integration ( #31459 )
...
* Initial commit
* dynamic update
* Don't update when add entities
* Cleaning
* Fix MAX_REQUESTS_PER_DAY const
* Fix pylint errors
* Fix comment
* Migrate to DataUpdateCoordinator
* Cleaning
* Suggested change
* Change try..except as suggested
* Remove unnecessary self._attrs variable
* Cleaning
* Fix typo
* Change update_interval method
* Add comments
* Add ConfigEntryNotReady
2020-03-25 11:13:28 -07:00
Maciej Bieniek
15645ab0c9
Add unique ID to Airly config entries ( #30681 )
...
* Add unique ID to Airly config entries
* Update tests
* Update tests
* Fix typo
* Remove unnecesary and undo changes in first test
* Suggested change
2020-01-13 13:28:07 +01:00
Maciej Bieniek
80be3b74a9
Init entities as unavailable when offline ( #29738 )
2019-12-19 14:10:27 +01:00
Bas Nijholt
700cecc8ef
sort imports according to PEP8 for airly ( #29615 )
2019-12-08 13:41:51 +01:00
Maciej Bieniek
ec78821161
Add sensor platform to Airly integration ( #27717 )
...
* Add sesnor.py file
* Move AirlyData to __init__
* Cleaning
* Update .coveragerc file
* Sort consts
* Sort imports
* Remove icons from sensors with device_class
2019-10-16 12:06:52 +02:00
Maciej Bieniek
652bf54044
Fix update after network error ( #27444 )
2019-10-12 12:57:01 -07:00
Maciej Bieniek
8ba4ee1012
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
2019-10-04 13:58:29 +02:00