renamed add_devices to async_add_devices according to hass naming scheme (#9485)

* renamed add_devices to async_add_devices according to hass naming scheme

* replaced some occurencies of async_add_entites to async_add_devices

* fixed unit test

* fixed unit test
This commit is contained in:
Julius Mittenzwei authored and Pascal Vizeli committed 2017-09-19 17:06:52 +02:00
1 parent 185ada2354
commit a5a970709f
12 files changed
+55 -57

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ def test_setup_platform(hass):
yield from spc.async_setup_platform(hass=hass,
config={},
async_add_entities=add_entities,
async_add_devices=add_entities,
discovery_info=zones)
assert len(added_entities) == 3