core/tests
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
..
auth Clean up accessing entity_registry.async_get_registry helper via hass (#72005) 2022-05-17 16:40:45 +02:00
backports
components Make tomorrowio API rate limit handling more robust (#70412) 2022-05-29 18:29:21 +02:00
fixtures Prettify json (#68895) 2022-03-30 12:15:04 +02:00
hassfest Bump samsungtvws to 2.4.0 (#68225) 2022-03-16 20:44:14 -10:00
helpers Handle OAuth2 rejection (#72040) 2022-05-28 20:23:16 -07:00
pylint Enforce type hints on device_automation platform (#72126) 2022-05-23 18:51:40 +02:00
resources
scripts
test_util Play first item in m3u and pls playlists when casting (#70047) 2022-04-26 13:16:37 -07:00
testing_config Minor cleanup of test integration's cover platform (#72598) 2022-05-27 17:53:49 +03:00
util Add template as_timedelta (#71801) 2022-05-23 19:32:22 +02:00
__init__.py
bandit.yaml
common.py Make database access in the eventloop raise an exception (#71547) 2022-05-09 15:22:08 -05:00
conftest.py Move manual configuration of MQTT fan and light to the integration key (#71676) 2022-05-19 15:04:53 +02:00
ignore_uncaught_exceptions.py Log unhandled loop exception traces when asyncio debug is on (#57602) 2021-10-18 20:07:51 -07:00
test_bootstrap.py
test_config.py
test_config_entries.py Prevent config entries from being reloaded concurrently (#72636) 2022-05-28 10:49:55 +02:00
test_core.py Fix memory leak when firing state_changed events (#72571) 2022-05-26 20:54:26 -07:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py Allow custom integrations to support application_credentials platform (#71129) 2022-05-01 16:26:22 -07:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py
test_test_fixtures.py