mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Use recorder_mock in tests (#70363)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@@ -7,14 +7,11 @@ from homeassistant.util import dt as dt_util
|
||||
|
||||
from .test_common import CONSUMPTION_DATA_1, mock_get_homes
|
||||
|
||||
from tests.common import async_init_recorder_component
|
||||
from tests.components.recorder.common import async_wait_recording_done_without_instance
|
||||
|
||||
|
||||
async def test_async_setup_entry(hass):
|
||||
async def test_async_setup_entry(hass, recorder_mock):
|
||||
"""Test setup Tibber."""
|
||||
await async_init_recorder_component(hass)
|
||||
|
||||
tibber_connection = AsyncMock()
|
||||
tibber_connection.name = "tibber"
|
||||
tibber_connection.fetch_consumption_data_active_homes.return_value = None
|
||||
|
||||
Reference in New Issue
Block a user