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

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
2017-09-19 17:06:52 +02:00
committed by Pascal Vizeli
parent 185ada2354
commit a5a970709f
12 changed files with 55 additions and 57 deletions

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