core/homeassistant/components/tomorrowio
Raman Gupta 92be8b4f8e
Make tomorrowio API rate limit handling more robust (#70412)
* Use the max request limit when setting tomorrowio update interval

* tests

* reduce lines

* simplify

* refactor

* Make Coordinator.async_setup_entry more efficient at determining when to refresh data and schedule refresh

* clean up

* clean up

* Remove unnecessary type definition

* typo

* fix logic ot be more deterministic

* Another fix

* Comment

* Reduce wasted API calls by doing partial updates when new entries get added with a new key

* Simplify and use asyncio event so that config entries only load after initial coordinator refresh

* Remove commented out piece

* Comment

* Remove unnecessary variable

* More cleanup

* Make future merge easier

* remove dupe

* switch order

* add comment

* Remove unnecessary error handling

* make code easier to read

* review feedback for code

* Fix logic

* Update test based on review

* Tweak comments

* reset mock so asertions are more clear

* Remove update interval check
2022-05-29 18:29:21 +02:00
..
translations [ci skip] Translation update 2022-05-23 00:25:42 +00:00
__init__.py Make tomorrowio API rate limit handling more robust (#70412) 2022-05-29 18:29:21 +02:00
config_flow.py
const.py
manifest.json
sensor.py Make tomorrowio API rate limit handling more robust (#70412) 2022-05-29 18:29:21 +02:00
strings.json
strings.sensor.json
weather.py Make tomorrowio API rate limit handling more robust (#70412) 2022-05-29 18:29:21 +02:00