hass-core/homeassistant
J. Nick Koston b061e7d1aa
Small speed up to setting up integrations and config entries (#117278)
* Small speed up to setting up integration and config entries

When profiling tests, I noticed many calls to get_running_loop. In the places
where we are already in a coro, pass the existing loop so it does not have to
be looked up. I did not do this for places were we are not in a coro since there
is risk that an integration could be doing a non-thread-safe call and its better
that the code raises when trying to fetch the running loop vs the performance
improvement for these cases.

* fix merge

* missed some
2024-05-11 22:39:20 -04:00
..
auth Use HassKey for helpers (2) (#117013) 2024-05-07 11:24:13 -05:00
backports Deprecated old backports and typing aliases (#114883) 2024-04-06 13:15:30 -10:00
brands Remove Epson Workforce integration (#115201) 2024-04-09 10:38:17 +02:00
components Fix docstring in Idasen Desk (#117280) 2024-05-12 09:14:52 +09:00
generated Add ESPhome discovery via MQTT (#116499) 2024-05-10 13:32:42 +02:00
helpers Small speed up to setting up integrations and config entries (#117278) 2024-05-11 22:39:20 -04:00
scripts Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
util Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
__init__.py
__main__.py Prevent shutdown fault-log trace-back (#116735) 2024-05-11 07:59:05 +02:00
block_async_io.py Detect blocking module imports in the event loop (#114488) 2024-03-30 19:51:31 -10:00
bootstrap.py Small speed up to setting up integrations and config entries (#117278) 2024-05-11 22:39:20 -04:00
config.py Enable Ruff RUF010 (#115371) 2024-05-08 23:54:49 +02:00
config_entries.py Small speed up to setting up integrations and config entries (#117278) 2024-05-11 22:39:20 -04:00
const.py Use HassKey for setup and bootstrap (#116998) 2024-05-07 11:18:20 -05:00
core.py Enable Ruff RUF010 (#115371) 2024-05-08 23:54:49 +02:00
data_entry_flow.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
exceptions.py Translate service validation errors (#115024) 2024-04-18 14:36:03 +02:00
loader.py Use HassKey for loader (#116999) 2024-05-07 18:37:01 +02:00
package_constraints.txt Bump bleak to 0.22.0 (#116955) 2024-05-08 07:35:33 -05:00
py.typed Add py.typed file (#115446) 2024-04-11 22:14:10 -04:00
requirements.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
runner.py Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
setup.py Small speed up to setting up integrations and config entries (#117278) 2024-05-11 22:39:20 -04:00
strings.json Smhi add reconfigure step to config flow (#114044) 2024-03-23 11:01:59 +01:00