mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Remove redundant WattTime test fixture (#79909)
This commit is contained in:
parent
5e32fdff26
commit
d90359b424
@ -62,11 +62,13 @@ def config_location_type_fixture(hass):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="config_entry")
|
@pytest.fixture(name="config_entry")
|
||||||
def config_entry_fixture(hass, config_auth, config_coordinates, unique_id):
|
def config_entry_fixture(hass, config_auth, config_coordinates):
|
||||||
"""Define a config entry fixture."""
|
"""Define a config entry fixture."""
|
||||||
entry = MockConfigEntry(
|
entry = MockConfigEntry(
|
||||||
domain=DOMAIN,
|
domain=DOMAIN,
|
||||||
unique_id=unique_id,
|
unique_id=(
|
||||||
|
f"{config_coordinates[CONF_LATITUDE]}, {config_coordinates[CONF_LONGITUDE]}"
|
||||||
|
),
|
||||||
data={
|
data={
|
||||||
**config_auth,
|
**config_auth,
|
||||||
**config_coordinates,
|
**config_coordinates,
|
||||||
@ -112,9 +114,3 @@ async def setup_watttime_fixture(hass, client, config_auth, config_coordinates):
|
|||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(name="unique_id")
|
|
||||||
def unique_id_fixture(hass):
|
|
||||||
"""Define a config entry unique ID fixture."""
|
|
||||||
return "32.87336, -117.22743"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user