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 authored and GitHub committed 2018-08-16 14:28:59 +02:00
1 parent e4d41fe313
commit 1ff1639cef
7 files changed
+252 -442

No files matched your search

+4 -5
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