core/tests/components/wwlln/conftest.py

29 lines
668 B
Python
Raw Normal View History

2019-07-12 20:36:49 +00:00
"""Define various utilities for WWLLN tests."""
import pytest
from homeassistant.components.wwlln import CONF_WINDOW, DOMAIN
from homeassistant.const import (
2019-07-31 19:25:30 +00:00
CONF_LATITUDE,
CONF_LONGITUDE,
CONF_RADIUS,
CONF_UNIT_SYSTEM,
)
2019-07-12 20:36:49 +00:00
from tests.common import MockConfigEntry
@pytest.fixture
def config_entry():
"""Create a mock WWLLN config entry."""
return MockConfigEntry(
domain=DOMAIN,
data={
CONF_LATITUDE: 39.128712,
CONF_LONGITUDE: -104.9812612,
CONF_RADIUS: 25,
2019-07-31 19:25:30 +00:00
CONF_UNIT_SYSTEM: "metric",
CONF_WINDOW: 3600,
2019-07-12 20:36:49 +00:00
},
2019-07-31 19:25:30 +00:00
title="39.128712, -104.9812612",
)