Fix wallbox tests (#91752)
This commit is contained in:
parent
fd3aa5338c
commit
62f76a81bb
8 changed files with 115 additions and 73 deletions
24
tests/components/wallbox/conftest.py
Normal file
24
tests/components/wallbox/conftest.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
"""Test fixtures for the Wallbox integration."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.wallbox.const import CONF_STATION, DOMAIN
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def entry(hass: HomeAssistant) -> MockConfigEntry:
|
||||
"""Return mock config entry."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
data={
|
||||
CONF_USERNAME: "test_username",
|
||||
CONF_PASSWORD: "test_password",
|
||||
CONF_STATION: "12345",
|
||||
},
|
||||
entry_id="testEntry",
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
return entry
|
Loading…
Add table
Add a link
Reference in a new issue