Commit graph

15 commits

Author SHA1 Message Date
J. Nick Koston
3a06659120
Speed up single entity/response service calls (#96729)
* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* Significantly speed up single entity/response service calls

Since the majority of service calls are single entity, we can
avoid creating tasks in this case. Since the multi-entity
service calls always check the result and raise, we can switch
the asyncio.wait to asyncio.gather

* revert

* cannot be inside pytest.raises

* one more

* Update homeassistant/helpers/service.py
2023-07-17 09:33:13 +02:00
Erik Montnemery
17ac1a6d32
Set automations which fail validation unavailable (#94856) 2023-06-27 18:23:33 +02:00
epenet
a102883eff
Add type hints to integration tests (part 2) (#88493) 2023-02-21 09:25:05 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 (#88165)
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
fe747601ff
Cleanup DeviceClass and StateClass in tests (#78811) 2022-09-20 10:49:11 -04:00
Erik Montnemery
8d910c5079
Revert "Add offset support to time trigger" (#58947) 2021-11-02 16:56:38 +01:00
Robert Meijers
c9966a3b04
Add offset support to time trigger (#56838) 2021-10-26 15:52:43 +02:00
Erik Montnemery
b26779a27a
Add id to automation triggers (#48464) 2021-03-31 14:56:04 +02:00
Franck Nijhof
65cf2fcb6f
Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
bbb82ded68
Fix time trigger based on entities ignoring entities if initially in the past (#43431) 2020-11-20 15:43:28 +01:00
Paulus Schoutsen
aec191b558
Support datetime sensor in time trigger (#42899) 2020-11-09 14:50:54 +01:00
Paulus Schoutsen
7027b01a29
Fix broken time trigger test (#42606) 2020-10-29 22:34:06 +01:00
Paulus Schoutsen
388a5d8c91
Add entity ID to time trigger (#41933) 2020-10-19 09:42:00 +02:00
Phil Bruckner
5d73714f5a
Fix time trigger test (#38988)
* Fix time trigger test

* Forgot part of fix
2020-08-18 07:37:04 -05:00
Phil Bruckner
ca9dd0c833
Reorganize trigger code (#38655) 2020-08-17 11:54:56 -05:00
Renamed from tests/components/automation/test_time.py (Browse further)