hass-core/tests/components/rflink
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 Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_binary_sensor.py Black 2019-07-31 12:25:30 -07:00
test_cover.py Inverted rflink cover (#26038) 2019-09-01 17:52:43 +02:00
test_init.py Black 2019-07-31 12:25:30 -07:00
test_light.py Switch on/off all lights, and wait for the result (#27078) 2019-10-06 08:23:12 -07:00
test_sensor.py Black 2019-07-31 12:25:30 -07:00
test_switch.py Black 2019-07-31 12:25:30 -07:00