* Use `setup_test_component_platform` fixture for number entity component tests instead of `hass.components` * Now function * Ruff format
19 lines
435 B
Python
19 lines
435 B
Python
"""Fixtures for the number entity component tests."""
|
|
|
|
import pytest
|
|
|
|
from tests.components.number.common import MockNumberEntity
|
|
|
|
UNIQUE_NUMBER = "unique_number"
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_number_entities() -> list[MockNumberEntity]:
|
|
"""Return a list of mock number entities."""
|
|
return [
|
|
MockNumberEntity(
|
|
name="test",
|
|
unique_id="unique_number",
|
|
native_value=50.0,
|
|
),
|
|
]
|