Mock Module + Platform default to async (#12347)

* Mock Module + Platform default to async

* Change checks
This commit is contained in:
Paulus Schoutsen 2018-02-12 10:59:20 -08:00 committed by GitHub
parent 48f40453f7
commit 870728f68f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 16 deletions

View file

@ -331,7 +331,7 @@ def test_parallel_updates_async_platform_with_constant(hass):
@asyncio.coroutine
def test_parallel_updates_sync_platform(hass):
"""Warn we log when platform setup takes a long time."""
platform = MockPlatform()
platform = MockPlatform(setup_platform=lambda *args: None)
loader.set_component('test_domain.platform', platform)