core/tests/components/hue
J. Nick Koston 4f18f0d902
Fix setup timings when config entry platform loads are not awaited (#113959)
* Move setup time logging into the context manager

We were fetching the time twice but since the context
manager already has the timing, move it there

* remove log setup assertions from integration test

* tweak logging to give us better data for tracking issues

* redundant

* adjust

* preen

* fixes

* adjust

* make api change internal so nobody uses it

* coverage

* fix test

* fix more tests

* coverage

* more tests assuming internal calls

* fix more

* adjust

* adjust

* fix axis tests

* fix broadlink -- it does not call async_forward_entry_setup

* missed some

* remove useless patch

* rename, detect it both ways

* clear

* debug

* try to fix

* handle phase finishing out while paused

* where its set does not need to know its late as that is an implemenation detail of setup

* where its set does not need to know its late as that is an implemenation detail of setup

* tweak

* simplify

* reduce complexity

* revert order change as it makes review harder

* revert naming changes as it makes review harder

* improve comment

* improve debug

* late dispatch test

* test the other way as well

* Update setup.py

* Update setup.py

* Update setup.py

* simplify

* reduce
2024-03-23 15:26:38 -04:00
..
fixtures Discover switch entities from Hue behavior_script instances (#101262) 2023-10-02 17:15:41 +02:00
__init__.py
conftest.py Add empty line after module docstring (2) [tests.components] (#112737) 2024-03-08 19:16:21 +01:00
const.py Adjust Hue integration to use Entity descriptions and translatable entity names (#101413) 2023-10-09 14:14:07 +02:00
test_binary_sensor.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_bridge.py Fix setup timings when config entry platform loads are not awaited (#113959) 2024-03-23 15:26:38 -04:00
test_config_flow.py Fix adding Hue bridge manually by IP (#113055) 2024-03-11 12:35:41 +01:00
test_device_trigger_v1.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_device_trigger_v2.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_diagnostics.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_event.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_init.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_light_v1.py Run debouncer tasks eagerly to avoid scheduling on the event loop (#112789) 2024-03-10 08:37:10 -10:00
test_light_v2.py Add ruff rule PIE808 (#113621) 2024-03-17 09:56:26 +01:00
test_migration.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_scene.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_sensor_v1.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00
test_sensor_v2.py Add ruff rule PIE804 (#113620) 2024-03-16 12:45:18 -10:00
test_services.py Fix setup timings when config entry platform loads are not awaited (#113959) 2024-03-23 15:26:38 -04:00
test_switch.py Add empty line after module docstring [tests f-k] (#112709) 2024-03-08 14:50:04 +01:00