hass-core/tests/components/systemmonitor/conftest.py
G Johansson 4f0ee20ec5
Add config flow to System Monitor ()
* Initial commit for config flow to System Monitor

* sensors

* Fixes

* Works

* Add import

* entity_registry_enabled_default = False

* entity_category = diagnostic

* Create issue

* issue in config flow

* Tests

* test requirement

* codeowner

* Fix names

* processes

* Fix type

* reviews

* get info during startup once

* Select process

* Legacy import of resources

* requirements

* Allow custom

* Fix tests

* strings

* strings

* Always enable process sensors

* Fix docstrings

* skip remove sensors if no sensors

* Modify sensors

* Fix tests
2023-12-26 18:29:32 +01:00

17 lines
458 B
Python

"""Fixtures for the System Monitor integration."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
"""Mock setup entry."""
with patch(
"homeassistant.components.systemmonitor.async_setup_entry",
return_value=True,
) as mock_setup_entry:
yield mock_setup_entry