1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-01 03:37:08 +00:00

9 Commits

Author SHA1 Message Date
J. Nick Koston
4b7a313ece
Use identity checks for CoreState ()
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
Erik Montnemery
dff18b4a16
Rename gather_with_concurrency to gather_with_limited_concurrency ()
* Rename gather_with_concurrency to gather_with_limited_concurrency

* Update test
2023-10-19 15:08:52 +02:00
J. Nick Koston
bd1d8675a9
Avoid many hass.is_stopping calls in the discovery helper ()
async_has_matching_flow is more likely to be True than hass.is_stopping

This does not make much difference but it was adding noise to a profile
that I am digging into to look for another issue
2023-09-08 13:09:29 -04:00
J. Nick Koston
b207790177
Fix benign typo in discovery flow helper () 2023-03-28 13:01:41 +02:00
J. Nick Koston
11681f3f31
Pass a helpful name when creating common asyncio tasks in core () 2023-03-05 12:46:02 +01:00
J. Nick Koston
57360a7528
Prevent new discovery flows from being created when stopping () 2023-02-25 12:02:07 +01:00
J. Nick Koston
c0e22be7a8
Fix allowing identical flows to be created before startup ()
The check for identical flows only worked after
the start event. We now check against pending
flows as well

If startup took a while we could end up
with quite the thundering herd
2023-02-15 21:36:00 -05:00
Paulus Schoutsen
2f29f38ec6
Streamline discovery flow callback () 2022-08-12 16:42:41 -07:00
J. Nick Koston
b86e19143d
Prevent event loop delay / instability from discovery () 2021-10-13 08:37:14 -07:00