From b60c7ce479251369180f8b8a4abc6624e6f88b21 Mon Sep 17 00:00:00 2001 From: Wojciech Mamak Date: Sun, 28 Apr 2019 21:01:33 +0200 Subject: [PATCH] Fixed bug with max_result (#23507) The config option 'max_result' was assigned to not existing 'max_result' variable, it should be assigned to 'maxResult'. The current version causes an error when max_result option is used. --- homeassistant/components/google/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/google/calendar.py b/homeassistant/components/google/calendar.py index 36ab3459d5c..969b15e8c1f 100644 --- a/homeassistant/components/google/calendar.py +++ b/homeassistant/components/google/calendar.py @@ -76,7 +76,7 @@ class GoogleCalendarData: params = dict(DEFAULT_GOOGLE_SEARCH_PARAMS) params['calendarId'] = self.calendar_id if self.max_results: - params['max_results'] = self.max_results + params['maxResults'] = self.max_results if self.search: params['q'] = self.search