mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Update mqtt_eventstream tests to pytest style functions (#42119)
This commit is contained in:
parent
00847db54f
commit
1cacca6568
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user