Sid
c2b3bf3fb9
Enable Ruff RET502 ( #115139 )
2024-05-21 22:19:33 +02:00
Marc Mueller
2db64c7e6d
Use HassKey for helpers (1) ( #117012 )
2024-05-07 11:25:16 -05:00
J. Nick Koston
76639252c9
Make discovery flow tasks background tasks ( #116327 )
2024-04-28 08:13:37 -05:00
J. Nick Koston
95958ac0ef
Increase discovery flow init concurrency limit to 20 ( #115230 )
2024-04-08 11:05:40 -10:00
J. Nick Koston
ca5ed274cb
Deprecate calling async_listen and async_listen_once with run_immediately ( #115169 )
2024-04-08 10:07:54 -10:00
J. Nick Koston
1536a3981f
Use run_immediately for starting discovery at the started event ( #113112 )
2024-03-11 14:29:39 -10:00
Marc Mueller
19ab3d6daf
Add empty line after module docstring [helpers + other] ( #112707 )
2024-03-08 10:36:11 -05:00
Erik Montnemery
a0e558c457
Add generic classes BaseFlowHandler and BaseFlowManager ( #111814 )
...
* Add generic classes BaseFlowHandler and BaseFlowManager
* Migrate zwave_js
* Update tests
* Update tests
* Address review comments
2024-02-29 16:52:39 +01:00
J. Nick Koston
ae2ce99cbd
Create tasks eagerly in the discovery flow helper ( #111557 )
...
The likely outcome from most discoveries is an near immediate abort
so we run them eagerly to avoid having to schedule on the event loop
for the common case
2024-02-26 20:52:04 -05:00
J. Nick Koston
c74958dd36
Reduce one iteration of pending flows in the discovery flow helper ( #110918 )
2024-02-19 09:57:39 +01:00
J. Nick Koston
4b7a313ece
Use identity checks for CoreState ( #107846 )
...
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` ( #102241 )
...
* 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 ( #99929 )
...
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 ( #90396 )
2023-03-28 13:01:41 +02:00
J. Nick Koston
11681f3f31
Pass a helpful name when creating common asyncio tasks in core ( #89171 )
2023-03-05 12:46:02 +01:00
J. Nick Koston
57360a7528
Prevent new discovery flows from being created when stopping ( #88743 )
2023-02-25 12:02:07 +01:00
J. Nick Koston
c0e22be7a8
Fix allowing identical flows to be created before startup ( #88213 )
...
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 ( #76666 )
2022-08-12 16:42:41 -07:00
J. Nick Koston
b86e19143d
Prevent event loop delay / instability from discovery ( #57463 )
2021-10-13 08:37:14 -07:00