Skip to content

Commit

Permalink
Remove redundant Tile test fixture (home-assistant#79912)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored Oct 8, 2022
1 parent 33d2bec commit 6297a28
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/components/tile/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def api_fixture(hass, data_tile_details):


@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=config[CONF_USERNAME], data=config)
entry.add_to_hass(hass)
return entry

Expand Down Expand Up @@ -59,9 +59,3 @@ async def setup_tile_fixture(hass, api, 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 "[email protected]"

0 comments on commit 6297a28

Please sign in to comment.