Update mqtt_eventstream tests to pytest style functions (#42119)

This commit is contained in:
dmonego 2020-10-20 22:07:48 -04:00 committed by GitHub
parent 00847db54f
commit 1cacca6568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,6 @@
"""The tests for the MQTT eventstream component."""
import json
import pytest
import homeassistant.components.mqtt_eventstream as eventstream
from homeassistant.const import EVENT_STATE_CHANGED
from homeassistant.core import State, callback
@ -18,11 +16,6 @@ from tests.common import (
)
@pytest.fixture(autouse=True)
def mock_storage(hass_storage):
"""Autouse hass_storage for the TestCase tests."""
async def add_eventstream(hass, sub_topic=None, pub_topic=None, ignore_event=None):
"""Add a mqtt_eventstream component."""
config = {}