Erik Montnemery
9e9ba53f0e
Move SensorEntity last in the inheritance tree ( #48230 )
2021-03-22 20:05:13 +01:00
Erik Montnemery
e0cd7072d6
Migrate integrations a-c to extend SensorEntity ( #48210 )
2021-03-22 12:37:16 +01:00
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
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
springstan
4425c3aea2
Update airly to use CoordinatorEntity ( #39413 )
2020-08-30 14:41:39 +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
03ac82d440
Remove unused decorator in Airly ( #35361 )
2020-05-08 15:10:14 +02: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
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Ville Skyttä
496bd3dddf
Add and use more unit constants ( #32122 )
...
* Add and use speed constants
* Add and use meter based volume and area constants
* Add and use more mass unit constants
* Add and use concentration unit constants
* Add and use watts per square meter constant
* Use more time constants
* Use more data constants
2020-02-24 17:52:14 -08: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
Maciej Bieniek
86a4be1636
Fix attribution ( #27815 )
2019-10-17 17:22:40 -07: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