Co-authored-by: Philip Allgaier <mail@spacegaier.de> Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: Franck Nijhof <git@frenck.dev> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
19 lines
463 B
Python
19 lines
463 B
Python
"""Test helpers for Tibber."""
|
|
import pytest
|
|
|
|
from homeassistant.components.tibber.const import DOMAIN
|
|
from homeassistant.const import CONF_ACCESS_TOKEN
|
|
|
|
from tests.common import MockConfigEntry
|
|
|
|
|
|
@pytest.fixture
|
|
def config_entry(hass):
|
|
"""Tibber config entry."""
|
|
config_entry = MockConfigEntry(
|
|
domain=DOMAIN,
|
|
data={CONF_ACCESS_TOKEN: "token"},
|
|
unique_id="tibber",
|
|
)
|
|
config_entry.add_to_hass(hass)
|
|
return config_entry
|