mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +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")
|
||||
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."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
unique_id=unique_id,
|
||||
unique_id=(
|
||||
f"{config_coordinates[CONF_LATITUDE]}, {config_coordinates[CONF_LONGITUDE]}"
|
||||
),
|
||||
data={
|
||||
**config_auth,
|
||||
**config_coordinates,
|
||||
@ -112,9 +114,3 @@ async def setup_watttime_fixture(hass, client, config_auth, config_coordinates):
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
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