Yup, I had copied that example from the PR when it was still a ‘request for comment’ (up until about 2 days ago when its development was rekindled and expedited).
Now it will be included in 2023.9.0’s documentation for the Template integration:
A big thanks to allenporter and emontnemery for implementing this feature in time for the September release; it will simplify the task of getting calendar events and weather forecasts (and other things).
BTW, this comment intrigues me:
Perhaps, as a side-effect, this PR also fulfills a long-standing Feature Request: