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

Teach Context about deepcopy (#118206)

Teach context about deepcopy
This commit is contained in:
Paulus Schoutsen
2024-05-26 23:14:02 -04:00
committed by GitHub
parent c15f7f304f
commit 87fc27eeae
2 changed files with 9 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ async def test_assist_api(hass: HomeAssistant) -> None:
assert str(tool) == "<IntentTool - test_intent>"
test_context = Context()
assert test_context.json_fragment # To reproduce an error case in tracing
intent_response = intent.IntentResponse("*")
intent_response.matched_states = [State("light.matched", "on")]
intent_response.unmatched_states = [State("light.unmatched", "on")]