From ae1117bc743a068d109e2ab2c4d3f21e0949daa0 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Fri, 3 Nov 2023 23:19:37 +0100 Subject: [PATCH] Fix failing entity reuse test (#103342) * Fix failing entity reuse test * One more test --- tests/helpers/test_entity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/helpers/test_entity.py b/tests/helpers/test_entity.py index 26a4e48eb55..a3ba5e48641 100644 --- a/tests/helpers/test_entity.py +++ b/tests/helpers/test_entity.py @@ -1539,7 +1539,7 @@ async def test_reuse_entity_object_after_abort(hass: HomeAssistant) -> None: await platform.async_add_entities([ent]) with pytest.raises( HomeAssistantError, - match="Entity invalid cannot be added a second time to an entity platform", + match="Entity 'invalid' cannot be added a second time to an entity platform", ): await platform.async_add_entities([ent]) @@ -1562,7 +1562,7 @@ async def test_reuse_entity_object_after_entity_registry_remove( with pytest.raises( HomeAssistantError, - match="Entity test.test_5678 cannot be added a second time", + match="Entity 'test.test_5678' cannot be added a second time", ): await platform.async_add_entities([ent]) @@ -1587,6 +1587,6 @@ async def test_reuse_entity_object_after_entity_registry_disabled( with pytest.raises( HomeAssistantError, - match="Entity test.test_5678 cannot be added a second time", + match="Entity 'test.test_5678' cannot be added a second time", ): await platform.async_add_entities([ent])