Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant ReCollect Waste test fixture #79907

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 6 additions & 8 deletions tests/components/recollect_waste/conftest.py
Expand Up @@ -16,9 +16,13 @@


@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, data=config)
entry = MockConfigEntry(
domain=DOMAIN,
unique_id=f"{config[CONF_PLACE_ID]}, {config[CONF_SERVICE_ID]}",
data=config,
)
entry.add_to_hass(hass)
return entry

Expand Down Expand Up @@ -51,9 +55,3 @@ async def setup_recollect_waste_fixture(hass, config):
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 "12345, 12345"