1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

More entity service (#15998)

* Camera use entity service

* Convert climate services

* Convert light

* Convert media player

* Migrate fan
This commit is contained in:
Paulus Schoutsen
2018-08-16 14:28:59 +02:00
committed by GitHub
parent e4d41fe313
commit 1ff1639cef
7 changed files with 252 additions and 442 deletions

View File

@@ -356,11 +356,10 @@ def test_signal_repetitions_cancelling(hass, monkeypatch):
yield from hass.async_block_till_done()
print(protocol.send_command_ack.call_args_list)
assert protocol.send_command_ack.call_args_list[0][0][1] == 'off'
assert protocol.send_command_ack.call_args_list[1][0][1] == 'on'
assert protocol.send_command_ack.call_args_list[2][0][1] == 'on'
assert protocol.send_command_ack.call_args_list[3][0][1] == 'on'
assert protocol.send_command_ack.call_args_list[0][0][1] == 'on'
assert protocol.send_command_ack.call_args_list[1][0][1] == 'off'
assert protocol.send_command_ack.call_args_list[2][0][1] == 'off'
assert protocol.send_command_ack.call_args_list[3][0][1] == 'off'
@asyncio.coroutine