Skip to content

Commit

Permalink
Fix remote start issue for APIv1 device (issue #710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Feb 25, 2024
1 parent c734df8 commit ee34dbc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,12 @@ def _prepare_course_info(
break

if op_course_key := self.get_course_key(CourseType.OPCOURSE):
if "OpCourse" in course_info:
ret_data[op_course_key] = course_info["OpCourse"]
else:
ref_opcourse_key = (
"OpCourse" if self.model_info.is_info_v2 else op_course_key
)
if ref_opcourse_key in course_info:
ret_data[op_course_key] = course_info[ref_opcourse_key]
elif self.model_info.is_info_v2:
ret_data.pop(op_course_key, None)

for func_key in course_info["function"]:
Expand Down

0 comments on commit ee34dbc

Please sign in to comment.