Intent: Set light color (#12633)

* Make color_name_to_rgb raise

* Add Light Set Color intent

* Move some methods around

* Cleanup

* Prevent 1 more func call

* Make a generic Set intent for light

* Lint

* lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-02-27 18:02:21 -08:00
1 parent 14d052d242
commit efd155dd3c
6 files changed
+231 -47

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ def test_turn_on_multiple_intent(hass):
)
yield from hass.async_block_till_done()
assert response.speech['plain']['speech'] == 'Turned on test lights'
assert response.speech['plain']['speech'] == 'Turned on test lights 2'
assert len(calls) == 1
call = calls[0]
assert call.domain == 'light'