Files
home-assistant-core/tests/components/mill/conftest.py
T
Daniel Hjelseth HøyerandGitHub c797e7a973 Mill, add statistics (#130406)
* Mill, new features

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* typo

* tests

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* Update const.py

* Update sensor.py

* Update sensor.py

* Add test

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* Add test

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mock_setup_entry

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* after_depencies

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* Mill

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill stats

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill stats

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* format

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* Add test

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* tests

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

* mill

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>

---------

Signed-off-by: Daniel Hjelseth Høyer <[email protected]>
2025-04-28 21:59:42 +02:00

16 lines
394 B
Python

"""Common fixtures for the mill tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock]:
"""Override async_setup_entry."""
with patch(
"homeassistant.components.mill.async_setup_entry", return_value=True
) as mock_setup_entry:
yield mock_setup_entry