core/tests/helpers
Robbert Müller 7a156059e9 Switch on/off all lights, and wait for the result (#27078)
* Switch on/off all lights, and wait for the result

Reuses the parallel_updates semaphore.
This is a small crutch which serializes platforms which already do tis
for updates. Platforms which can parallelize everything, this makes it
go faster

* Fix broken unittest

With manual validation, with help from @frenck, we found out that the
assertions are wrong and the test should be failing.

The sequence requested is
OFF
ON

without cancelation, this code should result in:
off,off,off,on,on,on

testable, by adding a `await hass.async_block_till_done()` between the
off and on call.

with cancelation. there should be less off call's so
off,on,on,on

* Adding tests for async_request_call

* Process review feedback

* Switch gather with wait

* 👕 running black
2019-10-06 08:23:12 -07:00
..
__init__.py
test_aiohttp_client.py Black 2019-07-31 12:25:30 -07:00
test_area_registry.py Black 2019-07-31 12:25:30 -07:00
test_check_config.py Improve validation of device trigger config (#26910) 2019-09-27 17:48:48 +02:00
test_condition.py Add device automation condition (#26313) 2019-09-05 16:49:32 +02:00
test_config_entry_flow.py Hue tweak registered device type + discovery exception (#25977) 2019-08-16 16:19:00 -07:00
test_config_validation.py Adds guards for missing information in call stack frames (#27217) 2019-10-05 11:59:33 +02:00
test_deprecation.py Black 2019-07-31 12:25:30 -07:00
test_device_registry.py Remove lamps and groups from ha when removed from Hue (#26881) 2019-09-25 14:00:18 -07:00
test_discovery.py Black 2019-07-31 12:25:30 -07:00
test_dispatcher.py Black 2019-07-31 12:25:30 -07:00
test_entity.py Switch on/off all lights, and wait for the result (#27078) 2019-10-06 08:23:12 -07:00
test_entity_component.py Add service to reload scenes from configuration.yaml (#25680) 2019-08-05 23:04:19 +02:00
test_entity_platform.py Log warning if disabled entities receive updates. (#26143) 2019-08-22 14:12:24 -07:00
test_entity_registry.py Reload config entry when entity enabled in entity registry, remove entity if disabled. (#26120) 2019-08-22 19:32:43 -05:00
test_entity_values.py Black 2019-07-31 12:25:30 -07:00
test_entityfilter.py Black 2019-07-31 12:25:30 -07:00
test_event.py Black 2019-07-31 12:25:30 -07:00
test_icon.py Black 2019-07-31 12:25:30 -07:00
test_init.py Black 2019-07-31 12:25:30 -07:00
test_intent.py Black 2019-07-31 12:25:30 -07:00
test_json.py Black 2019-07-31 12:25:30 -07:00
test_location.py Black 2019-07-31 12:25:30 -07:00
test_restore_state.py Black 2019-07-31 12:25:30 -07:00
test_script.py add script shortcut for activating scenes (#27223) 2019-10-05 13:30:43 -07:00
test_service.py Black 2019-07-31 12:25:30 -07:00
test_state.py Add improved scene support to the light integration (#27182) 2019-10-05 12:43:12 -07:00
test_storage.py Black 2019-07-31 12:25:30 -07:00
test_sun.py Black 2019-07-31 12:25:30 -07:00
test_system_info.py Black 2019-07-31 12:25:30 -07:00
test_temperature.py Black 2019-07-31 12:25:30 -07:00
test_template.py Add arcus trigonometry functions to templates (#25510) 2019-08-09 11:16:47 -07:00
test_translation.py Fix tests 2019-09-10 13:07:55 -07:00