Remove redundant OpenUV test fixture (#79905)
This commit is contained in:
parent
e5a5326298
commit
50911af835
1 changed files with 2 additions and 8 deletions
|
@ -17,11 +17,11 @@ from tests.common import MockConfigEntry, load_fixture
|
|||
|
||||
|
||||
@pytest.fixture(name="config_entry")
|
||||
def config_entry_fixture(hass, config, unique_id):
|
||||
def config_entry_fixture(hass, config):
|
||||
"""Define a config entry fixture."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
unique_id=unique_id,
|
||||
unique_id=f"{config[CONF_LATITUDE]}, {config[CONF_LONGITUDE]}",
|
||||
data=config,
|
||||
options={CONF_FROM_WINDOW: 3.5, CONF_TO_WINDOW: 3.5},
|
||||
)
|
||||
|
@ -68,9 +68,3 @@ async def setup_openuv_fixture(hass, config, data_protection_window, data_uv_ind
|
|||
assert await async_setup_component(hass, DOMAIN, config)
|
||||
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 "51.528308, -0.3817765"
|
||||
|
|
Loading…
Add table
Reference in a new issue