forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant Tile test fixture (home-assistant#79912)
- Loading branch information
Showing
1 changed file
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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]" |