1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Adjust helpers tests which create devices (#98214)

This commit is contained in:
Erik Montnemery
2023-08-10 19:28:16 +02:00
committed by GitHub
parent f1d4a4bd26
commit c7b4d4f361
5 changed files with 39 additions and 9 deletions

View File

@@ -1360,6 +1360,7 @@ async def test_friendly_name_updated(
platform = MockPlatform(async_setup_entry=async_setup_entry)
config_entry = MockConfigEntry(entry_id="super-mock-id")
config_entry.add_to_hass(hass)
entity_platform = MockEntityPlatform(
hass, platform_name=config_entry.domain, platform=platform
)