Remove legacy list event calendar service (#118663)

This commit is contained in:
G Johansson 2024-06-21 11:18:51 +02:00 committed by GitHub
parent d21908a0e4
commit 9c5879656c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 101 deletions

View file

@ -2391,7 +2391,7 @@ async def test_execute_script_complex_response(
"type": "execute_script",
"sequence": [
{
"service": "calendar.list_events",
"service": "calendar.get_events",
"data": {"duration": {"hours": 24, "minutes": 0, "seconds": 0}},
"target": {"entity_id": "calendar.calendar_1"},
"response_variable": "service_result",
@ -2405,15 +2405,17 @@ async def test_execute_script_complex_response(
assert msg_no_var["type"] == const.TYPE_RESULT
assert msg_no_var["success"]
assert msg_no_var["result"]["response"] == {
"events": [
{
"start": ANY,
"end": ANY,
"summary": "Future Event",
"description": "Future Description",
"location": "Future Location",
}
]
"calendar.calendar_1": {
"events": [
{
"start": ANY,
"end": ANY,
"summary": "Future Event",
"description": "Future Description",
"location": "Future Location",
}
]
}
}