Migrate Alexa smart home to registry (#9616)

* Migrate Alexa smart home to registry

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2017-09-28 21:26:27 +02:00
1 parent 44838937d1
commit 2df433eb0a
2 files changed
+8 -29

No files matched your search

-13
View File
@@ -19,19 +19,6 @@ def test_create_api_message():
assert msg['payload'] == {}
def test_mapping_api_funct():
"""Test function ref from mapping function."""
assert smart_home.mapping_api_function('notExists') is None
assert smart_home.mapping_api_function('DiscoverAppliancesRequest') == \
smart_home.async_api_discovery
assert smart_home.mapping_api_function('TurnOnRequest') == \
smart_home.async_api_turn_on
assert smart_home.mapping_api_function('TurnOffRequest') == \
smart_home.async_api_turn_off
assert smart_home.mapping_api_function('SetPercentageRequest') == \
smart_home.async_api_set_percentage
@asyncio.coroutine
def test_wrong_version(hass):
"""Test with wrong version."""