Fix broken platform components (#22943)

* Fix broken platform components

* Lint
This commit is contained in:
Paulus Schoutsen 2019-04-09 15:42:44 -07:00 committed by GitHub
parent 8582e390f8
commit e48ef7f441
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 51 deletions

View file

@ -1,8 +1,17 @@
"""The tests for the webhook automation trigger."""
import pytest
from homeassistant.core import callback
from homeassistant.setup import async_setup_component
@pytest.fixture(autouse=True)
async def setup_http(hass):
"""Set up http."""
assert await async_setup_component(hass, 'http', {})
assert await async_setup_component(hass, 'webhook', {})
async def test_webhook_json(hass, aiohttp_client):
"""Test triggering with a JSON webhook."""
events = []